Skip to content
Account takeover Disclosed report Intermediate CVE-2023-35172

Password reset endpoint is not brute force protected

The password reset flow in Nextcloud was annotated with brute-force protection everywhere except the endpoint that validates the reset token. An attacker could therefore keep guessing reset tokens without being throttled.

rullzer Follow

Originally disclosed on HackerOne

Bounty$500 High 8.7 View original
  • Triaged in 18 hours
  • Fixed in 43 hours
  • Paid in 3 days
  • Disclosed after 2 months

Summary by the program

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-mjf5-p765-qmr6

The report

Oversight of https://github.com/nextcloud/security-advisories/security/advisories/GHSA-v243-x6jc-42mp (https://hackerone.com/reports/1841665, but I can't judge the content there as it is not yet public).

In any case. The whole lostpassword flow is now annotated with bruteforce protection. Except the endpoint that actually matters. https://github.com/nextcloud/server/blob/master/core/Controller/LostController.php#L226-L229

An attacker can still happily try to brute force the token. Without getting throttled.

Impact

The lostpassword flow is without actual bruteforce protection.

The original report as published on HackerOne, by rullzer. 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 brute-force protection annotation was applied to the rest of the lost-password flow but omitted from the controller action that checks the reset token.

Impact

An attacker could repeatedly guess password reset tokens without being throttled.

What the attacker needed

Access to the reset endpoint; a reset token to guess

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.

When you forget your password, a site emails you a link containing a long random code (a token) that proves the link is yours. This report says the page that checks that code had no limit on how many times someone could try, so a guesser could keep trying codes until one worked.

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 rullzer

View all

9 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.