Cracking reCAPTCHA, Turbo Intruder style
Google reCAPTCHA tokens could be reused multiple times if submitted simultaneously, allowing an attacker to bypass the one-time-use restriction and register multiple accounts with a single captcha solution. This could triple spam account registration rates and potentially enable other race condition exploits on sites protected by reCAPTCHA.
Published on portswigger.net
Tired of proving you're not a robot? In this post, I'll show how you can partially bypass Google reCAPTCHA by using a new Turbo Intruder feature to trigger a race condition.
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
Impact
An attacker could register multiple accounts with a single reCAPTCHA solution, potentially tripling spam rates and enabling other race condition exploits on sites protected by reCAPTCHA.
What the attacker needed
Target uses reCAPTCHA; ability to send simultaneous requests; valid reCAPTCHA token
The fix
Websites should manually secure reCAPTCHA by locking or synchronising on the g-recaptcha-response token, as Google declined to fix the issue.
How it was found
- Set up Turbo Intruder with last-byte synchronization to send multiple requests simultaneously.
- Queue multiple registration requests with the same reCAPTCHA token using a gate.
- Open the gate to release all requests at once.
- Observe that multiple accounts are created with a single token.
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.
reCAPTCHA is a test to prove you are human, and normally each solved test can only be used once. This report shows that if you send many requests at the exact same moment, the same solved test can be accepted more than once, letting you create multiple accounts from one test. The issue is that the check and the use of the token are not done atomically, so a race condition occurs.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.