Advisory

GHSA-h5gf-cmm8-cg7c

Also known as: CVE-2024-24765, GO-2024-2616

Summary

CasaOS-UserService allows unauthorized access to any file

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-03-06 15:22 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/IceWhaleTech/CasaOS-UserService

Go · All systems

Affected

  • introduced 0, fixed 0.4.7 (semver)

Fixed versions

0.4.7

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences