Race Condition in OTP Request — Unlimited SMS Bombing
A race condition in the OTP request endpoint allowed an attacker to send many parallel requests and bypass rate limiting, resulting in about 150 SMS OTP messages to a single phone number within one minute. This could be used for nuisance, SMS cost abuse, or to amplify social engineering attacks.
I discovered a race condition in the OTP delivery flow that allows an attacker to trigger a very large number of OTP messages to a single mobile number in a short period of time (observed ~150 OTPs within one minute). This can be used for nuisance/denial-of-service against users, SMS cost abuse, or to amplify other…
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 OTP endpoint lacked proper rate limiting or request correlation, allowing concurrent requests to bypass throttling.
Impact
Victim phone numbers could be flooded with SMS messages, causing annoyance and potential missed legitimate messages, and increasing SMS gateway costs; it may also be combined with other attacks like social engineering.
What the attacker needed
A valid phone number; ability to intercept and replay requests; no rate limiting on OTP endpoint
The fix
The OTP endpoint should be fixed by implementing rate limiting (e.g., after 5-10 requests respond with 'Too Many Requests') and adding CAPTCHA to OTP requests.
How it was found
- Sign up for an account using a valid phone number.
- Request the OTP; the server sends an OTP to the phone number.
- Capture the OTP request using an intercepting proxy.
- Observe the normal response (HTTP 200 OK) when a single request is sent.
- Prepare multiple copies of the same OTP request.
- Send the requests in parallel to the OTP endpoint and monitor the target phone for multiple OTP messages.
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 race condition happens when a system checks a limit but multiple requests arrive at the same moment, so the check is bypassed. Here, the server was supposed to limit how many OTP (one-time password) text messages a phone number could receive, but sending many requests at once let the attacker send far more than intended. This could flood a victim's phone with texts and cost the company money.
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.