FOGProject
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 proc_open() 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.5.10.2253
Fixed in 1.5.10.2253
Mitigation
Upgrade fogproject to 1.5.10.2253 or later.
References
- Vendor advisory github.com/FOGProject/fogproject/security/advi…
- Patch github.com/FOGProject/fogproject/pull/1001
- Patch github.com/FOGProject/fogproject/commit/3098e4…
3 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.