PT-2024-20543 · Unknown · Casaos-Userservice

Cp0204

·

Published

2024-03-06

·

Updated

2024-03-11

·

CVE-2024-24765

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions CasaOS-UserService versions prior to 0.4.7
Description The issue concerns a path traversal vulnerability in the UserService API, which allows an unauthorized actor to access any file on the system due to insufficient path filtering for user avatar image files. This could lead to the exposure of sensitive data, such as the CasaOS user database, and potentially result in privilege escalation to system root privileges. The vulnerability can be exploited by constructing paths to access arbitrary files, as demonstrated by the API endpoint "/v1/users/image" with a vulnerable path parameter.
Recommendations For versions prior to 0.4.7, update to version 0.4.7 to fix the issue. As a temporary workaround, consider restricting access to the /v1/users/image API endpoint until the update can be applied. Additionally, avoid using the path parameter in the affected API endpoint until the issue is resolved.

Exploit

Fix

Information Disclosure

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-24765
GHSA-H5GF-CMM8-CG7C
GO-2024-2616

Affected Products

Casaos-Userservice