Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS00OWNjLXhyamYtOXFmN84ABBnE

SFTPGo allows administrators to restrict command execution from the EventManager

Impact

One powerful feature of SFTPGo is the ability to have the EventManager execute scripts or run applications in response to certain events.
This feature is very common in all software similar to SFTPGo and is generally unrestricted.

However, any SFTPGo administrator with permission to run a script has access to the underlying OS/container with the same permissions as the user running SFTPGo.

This is unexpected for some SFTPGo administrators who think that there is a clear distinction between accessing the system shell and accessing the SFTPGo WebAdmin UI.

Patches

To avoid this confusion, running system commands is now disabled by default, and an allow list has been added so that system administrators configuring SFTPGo must explicitly define which commands are allowed to be configured from the WebAdmin UI.

https://github.com/drakkan/sftpgo/commit/88b1850b5806eee81150873d4e565144b21021fb
https://github.com/drakkan/sftpgo/commit/b524da11e9466d05fe03304713ee1c61bb276ec4

Workarounds

Allow EventManager to be used only by SFTPGo administrators who also have shell access.

Permalink: https://github.com/advisories/GHSA-49cc-xrjf-9qf7
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS00OWNjLXhyamYtOXFmN84ABBnE
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 1 day ago
Updated: 1 day ago


Identifiers: GHSA-49cc-xrjf-9qf7, CVE-2024-52309
References: Repository: https://github.com/drakkan/sftpgo
Blast Radius: 0.0

Affected Packages

go:github.com/drakkan/sftpgo/v2
Dependent packages: 7
Dependent repositories: 1
Downloads:
Affected Version Ranges: >= 2.4.0, < 2.6.3
Fixed in: 2.6.3
All affected versions: 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.5.6, 2.6.0, 2.6.1, 2.6.2
All unaffected versions: 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.6.3