Lucene search

K
gitlabHttps://gitlab.com/gitlab-org/security-products/gemnasium-dbGITLAB-4C94FC46D5CF3AFD00E32FFE88E14272
HistoryMar 06, 2024 - 12:00 a.m.

CasaOS Username Enumeration

2024-03-0600:00:00
https://gitlab.com/gitlab-org/security-products/gemnasium-db
gitlab.com
6
casaos
username enumeration
login page
error handling
security vulnerability

CVSS3

6.2

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

AI Score

6.9

Confidence

High

EPSS

0

Percentile

15.5%

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

Affected configurations

Vulners
Node
gocasaos-userserviceRange0.4.4.3
OR
gocasaos-userserviceRange<0.4.7
VendorProductVersionCPE
gocasaos-userservice*cpe:2.3:a:go:casaos-userservice:*:*:*:*:*:*:*:*

CVSS3

6.2

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

AI Score

6.9

Confidence

High

EPSS

0

Percentile

15.5%

Related for GITLAB-4C94FC46D5CF3AFD00E32FFE88E14272