GHSA-c967-2652-gfjm

Suggest an improvement
Source
https://github.com/advisories/GHSA-c967-2652-gfjm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-c967-2652-gfjm/GHSA-c967-2652-gfjm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c967-2652-gfjm
Aliases
Related
Published
2024-03-06T15:23:53Z
Modified
2026-02-22T23:14:15.603843Z
Severity
  • 6.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
CasaOS Username Enumeration
Details

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!!!"

Database specific
{
    "cwe_ids": [
        "CWE-204"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2024-03-06T19:15:07Z",
    "github_reviewed_at": "2024-03-06T15:23:53Z"
}
References

Affected packages

Go / github.com/IceWhaleTech/CasaOS-UserService

Package

Name
github.com/IceWhaleTech/CasaOS-UserService
View open source insights on deps.dev
Purl
pkg:golang/github.com/IceWhaleTech/CasaOS-UserService

Affected ranges

Type
SEMVER
Events
Introduced
0.4.4.3
Fixed
0.4.7

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-c967-2652-gfjm/GHSA-c967-2652-gfjm.json"