The Illusion of Security: How I Bypassed CAPTCHA to Enumerate Users (and Why It Was a Duplicate)
The password reset endpoint did not validate the reCAPTCHA token server-side, so any value was accepted. An attacker could automate requests to enumerate valid email addresses and trigger password reset emails.
Published on medium.com
When we browse the web, we are trained to trust certain symbols. The Green Lock means “Secure.” The “I am not a robot” checkbox means “No Bots Allowed.”
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server-side code accepted the password reset request without verifying the reCAPTCHA token with Google.
Impact
An attacker could enumerate valid user accounts and send password reset emails to flood inboxes, though a rate limiter returned 429 errors after about 50 rapid requests.
What the attacker needed
Access to the password reset page; ability to intercept HTTP requests
The fix
The server should validate the reCAPTCHA token with Google before processing the password reset request.
How it was found
- Open the password reset page and submit a valid email with the CAPTCHA.
- Intercept the request in Burp Suite and note the CAPTCHA response parameter.
- Send the request to Burp Intruder and set the email and CAPTCHA token as payload positions.
- Use a list of email addresses and random CAPTCHA values, then start the attack.
- Observe that every request returns 200 OK, showing the CAPTCHA is not checked.
- Compare response sizes for valid and invalid emails to enumerate accounts.
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 write-up has not been written yet. The Original tab links to the source.
A CAPTCHA is a test meant to prove a human is filling in a form, not a script. Here the website showed the test but never checked the answer on its server, so a script could send the form many times. That let the tester find out which email addresses had accounts.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.