The Night I Broke the OTP Limit — A Simple Bug, A Cool Trick
The OTP system limited requests per phone number but not per user, so an attacker could rotate numbers to send many OTPs. Toggling airplane mode reset the network and bypassed a 503 block, allowing continued OTP sending.
I’m an MSc Computer Science student. Most of my days go the same way lectures, code, assignments, sleep, repeat.
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 send many OTPs to arbitrary phone numbers, wasting SMS credits and annoying users; the 503 block limited the rate but was bypassed by toggling airplane mode.
What the attacker needed
A mobile hotspot; a proxy tool like Burp Suite; a phone number to request OTPs
The fix
The system should limit OTP requests by both phone number and client/IP, add CAPTCHA after repeated requests, monitor usage spikes, and use longer cooldowns.
How it was found
- Connect to a mobile hotspot.
- Open the login page and request an OTP for a phone number.
- Intercept the OTP request with a proxy.
- Resend the request for the same number until blocked after 3-4 tries with a 10-minute timeout.
- Change the phone number and resend to get new OTPs.
- After receiving a 503 error, toggle airplane mode to reset the network and resume sending OTPs.
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 one-time password (OTP) is a short code sent to a phone to log in. The system tried to stop abuse by limiting how many codes could be sent to one number, but it did not limit how many different numbers one person could request codes for. By switching phone numbers and resetting the network, the person could keep sending codes, which costs the company money and annoys users.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.