GHSA-2hqx-5ffg-w4c3: FOG: Authenticated low-privileged API user can modify Storage Nodes and reach root command execution
FOG is a free open-source cloning/imaging/rescue suite/inventory management system. Prior to 1.5.10.2253 and 1.6.0-RC-1, an authenticated API-enabled user with uType=1 who possesses both the user's API token and the global FOG API token can use PUT /fog/storagenode/{id}/edit to modify Storage Node user, pass, and ftppath fields because the API validates the credentials but does not enforce an administrator-only role. With storage replication enabled and a usable Storage Node, FOGImageReplicator interpolates those fields into an lftp command executed through procopen() by the root-running service, allowing the low-privileged user to execute commands as root. This issue is fixed in versions 1.5.10.2253 and 1.6.0-RC-1.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
FOGto a version that resolves this vulnerability.Fixed in 1.5.10.2253 - Upgrade
Upgrade
FOGto a version that resolves this vulnerability.Fixed in 1.6.0-RC-1