CAPTCHA Misconfiguration Leading to Replay-Based Authentication B
The CAPTCHA on a login page was only refreshed when the frontend page reloaded, not on each authentication request, so a single solved CAPTCHA value could be reused for repeated login attempts. An attacker could therefore automate brute-force or credential-stuffing attacks after solving the CAPTCHA once.
Published on cybertamarin.medium.com
During a recent private VAPT, I encountered a login protected by a CAPTCHA — a control intended to prevent automated attacks such as brute force and credential stuffing.
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 CAPTCHA token was not invalidated after a single use and was not tied to each authentication request on the server side, so the same solved value could be replayed.
Impact
The CAPTCHA could be bypassed after a single solve, enabling brute-force and credential-stuffing attacks at scale.
What the attacker needed
A login form protected by CAPTCHA; ability to intercept and replay requests
The fix
The CAPTCHA should be regenerated for every authentication attempt, invalidated after a single use, and validated strictly on the server side, with rate limiting and account lockout as additional controls.
How it was found
- Intercept the login request with an intercepting proxy.
- Solve the CAPTCHA once and capture the request.
- Send the captured request to Repeater and repeat it multiple times.
- Observe that the CAPTCHA image does not change across repeated requests.
- Refresh the page in the browser and see the CAPTCHA change, confirming refresh is frontend-only.
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 puzzle meant to prove a human is logging in, blocking automated guessing. Here the puzzle was only replaced when the web page was reloaded, not for every login attempt, so a script could keep sending the same solved answer over and over. That let an attacker try many passwords without solving new puzzles.
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.