Unmasking a Captcha Bypass Vulnerability: Step-by-Step Walkthroug
The captcha validation reused a unique identifier that stayed valid after first use, so an attacker could replay a previously solved captcha pair. This let an attacker bypass the captcha and automate login attempts, reaching the OTP verification page without solving a new challenge.
Published on medium.com
Welcome to an exciting dive into the world of application security! In this blog, I’ll walk you through a real-world scenario of how I discovered and exploited a Captcha Bypass Vulnerability.
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 did not invalidate the captcha identifier after use and did not bind it to the user's session or IP, so a previously solved pair could be replayed.
Impact
An attacker could bypass the captcha and automate login attempts, which the author says could enable brute force, credential stuffing and account takeovers; the text does not show these being carried out.
What the attacker needed
A way to intercept and replay HTTP requests; one previously solved captcha pair
The fix
The captcha identifier should be invalidated after one use, bound to the user's session or IP, and given a strict expiry; the text does not say whether this was fixed.
How it was found
- Enter a mobile number and solve the captcha normally so the server accepts it.
- Intercept the submitted request and note the captcha answer and its unique identifier.
- Start another login attempt, enter the current captcha, and intercept that request.
- Replace the current captcha answer and identifier with the previously captured pair and send it.
- Observe that the server accepts the old pair and redirects to the OTP verification page.
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 submitting a form, not a bot. Here the server checked the answer against an identifier but never marked that identifier as used, so the same solved puzzle could be sent again and again. That means an automated script could skip the puzzle and try many logins.
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.