fogproject: FOG: Authenticated low-privileged API user can modify Storage Nodes and reach root command execution
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
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.
Text from CVE List
Affected versions 1
- fogprojectaffected: < 1.5.10.2253CVE List
References 6
- github.com/FOGProject/fogproject/commit/3098e4423588951d8f0cedac79b9b102f036761eFixvia CVE List
- github.com/FOGProject/fogproject/commit/aeda5bc536e3eec0200366d6b109a66798abc438Fixvia CVE List
- github.com/FOGProject/fogproject/releases/tag/1.5.10.2253Fixvia CVE List
- github.com/FOGProject/fogproject/releases/tag/1.6.0-RC-1Fixvia CVE List
- github.com/FOGProject/fogproject/security/advisories/GHSA-2hqx-5ffg-w4c3Advisoryvia CVE List
- github.com/FOGProject/fogproject/pull/1001Referencevia CVE List