Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1jOTY3LTI2NTItZ2Zqbc4AA5zF
CasaOS Username Enumeration
Summary
The Casa OS Login page has disclosed the username enumeration vulnerability in the login page.
Details
It is observed that the attacker can enumerate the CasaOS username using the application response. If the username is incorrect application gives the error "User does not exist", If the password is incorrect application gives the error "Invalid password".
PoC
Capture the login request in a tool like Burp Suit and use the intruder tab for trying multiple usernames.
Keep checking the response of each request if the response says Invalid password then the username is right.
Impact
Using this error attacker can enumerate the username of CasaOS.
The logic behind the issue
If the username is incorrect, then throw an error "User does not exist" else throw an error "Invalid password".
This condition can be vice versa like:
If the password is incorrect, then throw an error "Invalid password" else throw an error "User does not exist".
Mitigation
Since this is the condition we have to implement a single error which can be "Username/Password is Incorrect!!!"
Permalink: https://github.com/advisories/GHSA-c967-2652-gfjmJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jOTY3LTI2NTItZ2Zqbc4AA5zF
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 9 months ago
Updated: 9 months ago
CVSS Score: 6.2
CVSS vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Identifiers: GHSA-c967-2652-gfjm, CVE-2024-24766
References:
- https://github.com/IceWhaleTech/CasaOS-UserService/security/advisories/GHSA-c967-2652-gfjm
- https://github.com/IceWhaleTech/CasaOS-UserService/commit/c75063d7ca5800948e9c09c0a6efe9809b5d39f7
- https://github.com/IceWhaleTech/CasaOS-UserService/releases/tag/v0.4.7
- https://nvd.nist.gov/vuln/detail/CVE-2024-24766
- https://github.com/advisories/GHSA-c967-2652-gfjm
Blast Radius: 1.0
Affected Packages
go:github.com/IceWhaleTech/CasaOS-UserService
Dependent packages: 0Dependent repositories: 0
Downloads:
Affected Version Ranges: >= 0.4.4.3, < 0.4.7
Fixed in: 0.4.7
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