github.com/IceWhaleTech/CasaOS-UserService
Affected
- introduced
0, fixed0.4.7(semver)
Fixed versions
0.4.7
Fix
- Fixed version
0.4.7go get github.com/IceWhaleTech/[email protected]
Advisory
Also known as: CVE-2024-24765, GO-2024-2616
CasaOS-UserService allows unauthorized access to any file
Summary
http://demo.casaos.io/v1/users/image?path=/var/lib/casaos/1/avatar.png
Originally it was to get the url of the user's avatar, but the path filtering was not strict, making it possible to get any file on the system.
Details
Construct paths to get any file.
Such as the CasaOS user database, and furthermore can obtain system root privileges.
PoC
http://demo.casaos.io/v1/users/image?path=/var/lib/casaos/conf/../db/user.db
Impact
v0.4.6 all previous versions
High Basis: The source's own band: HIGH
0, fixed 0.4.7 (semver)0.4.7
0.4.7go get github.com/IceWhaleTech/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0