How I Hacked Every Account in 15 Minutes… And Got -1 Points (Th
The login flow used a 5-digit OTP that never expired and had no effective rate limiting, because the server trusted a client-supplied X-Forwarded-For header to identify the client IP. An attacker could brute-force the OTP in under 15 minutes and take over any user's account, accessing saved cards and orders.
Published on systemweakness.com
In the world of cybersecurity, we often obsess over complex vulnerabilities — hidden SQL Injections, obscure Deserialization bugs, or complex OAuth dances. We act like Mission Impossible, trying to drop in through the ceiling vents.
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 trusted the client-supplied X-Forwarded-For header for rate limiting and used a short, non-expiring OTP, so guesses were never effectively throttled.
Impact
An attacker could take over any user's account, access stored credit cards and order history, and enumerate phone numbers; the program classified it as out of scope because rate limiting was excluded.
What the attacker needed
Victim's phone number; ability to send many requests; no account needed
How it was found
- Enter a phone number and request an OTP.
- Capture the OTP verification request in Burp Suite.
- Send the request to Intruder and try different OTP values.
- Observe that after a few attempts the server returns 429 Too Many Requests.
- Add a changing X-Forwarded-For header to each request.
- Run the attack and observe no 429 blocks, allowing brute force until a 200 OK returns an authentication 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.
A one-time password (OTP) is a short code sent to your phone to log in. This site used only 5 digits and let you try again and again, and it believed a fake header saying each guess came from a different computer, so it never blocked the guesses. By trying every possible code, an attacker could log in as anyone.
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.