Skip to content
Account takeover Disclosed report Beginner CVE-2023-25820

Missing brute force protection on password confirmation modal

The password confirmation modal in Nextcloud settings lacked rate limiting, so an attacker could brute-force the user's password. A correct guess returned a different response than an incorrect one, allowing the attacker to confirm the password and potentially take over the account.

hackit_bharat Follow

Originally disclosed on HackerOne

Medium 4.2 View original
  • Triaged in 3 days
  • Fixed in 33 days
  • Paid in 40 days
  • Disclosed after 60 days

Summary by the program

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-36g6-wjx2-333x

The report

Hi Team,

I hope you are doing well.

I found a vulnerability in Next cloud , let's exploit

I am not reporting this for every feature in different different report , please increase the severity in single Report.

Vulnerability Name :- Lack of Rate limit While Generating Backup code , Deleting Account , Profile Updating

Vulnerability Description :- Hi Team , there is no rate limit while sending request to Generating Backup code , Deleting Account , Profile Updating endpoint that leads to bypass the password protection and even attacker can view current password of user.

Steps to Reproduce :- 1. Signup with an provider and verify your account. 2. Once verified --> Go to Settings --> Security. 3. Click on Generate Backup code , enable password less authentication , Update Profile it asks for password for authentication. 4. Enter Random Password --> Capture this request n burp suite. 5. Sent this to intruder and select password position and select Payload type as Brute Force. 6. Click on Attack. 7. Boom! On correct password you got response 200 ok and for incorrect you got 403 Forbidden.

Reference Report Next cloud team resolved previously :- #1596673

Impact

Password protected Authentication Bypass. 2. Attacker able to know the user current password in cleartext and able to takeover the account if they are at same place or someone forgot to logout from public PC also.

POC Attached

If you need further info I am here to help you. Thanks and Regards, BhaRat

Attachments

Bypasses.mp4 From the original on HackerOne

The original report as published on HackerOne, by hackit_bharat. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the password confirmation endpoint did not enforce rate limiting or lockout, and returned distinguishable responses for correct and incorrect passwords.

Impact

An attacker could brute-force the password and, if successful, view the current password in cleartext and take over the account, especially if the user left a session open on a shared computer.

What the attacker needed

A verified account; access to an active session; ability to send many requests

How it was found

  1. Create and verify an account.
  2. Go to Settings then Security.
  3. Trigger an action that asks for password confirmation, such as generating a backup code.
  4. Enter a random password and capture the request.
  5. Send the request to an intruder tool and set the password as the payload position.
  6. Run the attack and observe that a correct password returns 200 while an incorrect one returns 403.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Some sensitive actions in a web app ask you to re-enter your password to confirm it is really you. If the app does not limit how many times you can try, an attacker can guess passwords over and over until one works. Here, the app also revealed whether a guess was right or wrong, making the guessing easier.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by hackit_bharat

View all

4 more disclosed reports, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.