An open API service providing security vulnerability metadata for many open source software ecosystems.

GSA_kwCzR0hTQS1oNWdmLWNtbTgtY2c3Y84AA5zE

High EPSS: 0.00461% (0.63195 Percentile) EPSS:

CasaOS-UserService allows unauthorized access to any file

Affected Packages Affected Versions Fixed Versions
go:github.com/IceWhaleTech/CasaOS-UserService
PURL: pkg:go/github.com%2FIceWhaleTech%2FCasaOS-UserService
< 0.4.7 0.4.7
0 Dependent packages
0 Dependent repositories

Affected Version Ranges

All affected versions

0.3.6, 0.3.7, 0.4.0, 0.4.1, 0.4.2, 0.4.4, 0.4.5

All unaffected versions

0.4.7, 0.4.8

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

References: