Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-h5gf-cmm8-cg7c

Опубликовано: 06 мар. 2024
Источник: github
Github: Прошло ревью
CVSS3: 7.5

Описание

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

Пакеты

Наименование

github.com/IceWhaleTech/CasaOS-UserService

go
Затронутые версииВерсия исправления

< 0.4.7

0.4.7

EPSS

Процентиль: 64%
0.00461
Низкий

7.5 High

CVSS3

Дефекты

CWE-200

Связанные уязвимости

CVSS3: 7.5
nvd
почти 2 года назад

CasaOS-UserService provides user management functionalities to CasaOS. Prior to version 0.4.7, path filtering of the URL for user avatar image files was not strict, making it possible to get any file on the system. This could allow an unauthorized actor to access, for example, the CasaOS user database, and possibly obtain system root privileges. Version 0.4.7 fixes this issue.

EPSS

Процентиль: 64%
0.00461
Низкий

7.5 High

CVSS3

Дефекты

CWE-200