Lucene search

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

CasaOS Improper Restriction of Excessive Authentication Attempts vulnerability

2024-03-0600:00:00
https://gitlab.com/gitlab-org/security-products/gemnasium-db
gitlab.com
7
casaos
authentication
vulnerability
password brute force
server access
mitigation
rate limiting mechanism

7.3 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%

Summary

Here it is observed that the CasaOS doesn’t defend against password brute force attacks, which leads to having full access to the server.

Details

The web application lacks control over the login attempts i.e. why attacker can use a password brute force attack to find and get full access over the.

PoC

  1. Capture login request in proxy tool like Burp Suite and select password field.

1

  1. Here I have started attack with total number of 271 password tries where the last one is the correct password and as we can see in the following image we get a 400 Bad Request status code with the message “Invalid Password” and response length769on 1st request which was sent at**Tue, 16 Jan 2024 18:31:32 GMT**

2

Note: We have tested this vulnerability with more than 3400 tries. We have used 271 request counts just for demo purposes.

  1. Here the attack is completed and we can see in the following image we get 200 OK status code with the message “Ok” and response length1509on 271st request which was sent at**Tue, 16 Jan 2024 18:32:01 GMT**.

3

This means attacker can try 271 requests in 56 seconds.

Impact

This vulnerability allows attackers to get super user-level access over the server.

Mitigation

It is recommended to implement a proper rate-limiting mechanism on the server side where the configuration might be like:
If a specific IP address fails to login more than 5 times concurrently then that IP address must be blocked for at least 30 seconds. This will reduce the possibility of password brute-forcing attacks.

7.3 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%

Related for GITLAB-D5290D4A501EF6880C7029CC14ACC703