Skip to content
Race condition Write-up Intermediate

Second Order Race Condition

A single OTP and captcha verification request could be replayed to register multiple accounts by changing only the username and email. An attacker could create several accounts from one phone verification, bypassing the intended one-account-per-phone limit.

Prasoon Gupta Follow

Published on 0xdekster.medium.com

Bounty$1,000 View original

The website is having a registration process in which you have to fill your phone number to be able to register.

Prasoon Gupta, on 0xdekster.medium.com

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 or bind the OTP and captcha verification to a single registration attempt, so the same verified request could be replayed with different usernames and emails.

Impact

An attacker could create multiple accounts using a single phone verification and captcha solve, potentially bypassing limits meant to prevent abuse.

What the attacker needed

A phone number to receive OTP; ability to solve captcha once; intercepting proxy like Burp

How it was found

  1. Complete the registration form with phone number, email, username and details.
  2. Verify the phone number with the 6-digit OTP and solve the captcha.
  3. Intercept the final POST register request in Burp.
  4. Send the request to Turbo Intruder and set injection points on username and email.
  5. Run the default race.py script to send the request multiple times with different usernames and emails.
  6. Observe multiple 302 responses indicating several accounts were created from one verification.

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.

When you sign up, the site checks your phone with a one-time code (OTP) and a captcha to prove you are a real person. The bug is that the site did not remember that this check had already been used, so the same approved request could be sent again and again with small changes to create extra accounts. This lets someone make many accounts without needing a new phone number or solving a new captcha each time.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.