Skip to content
Account takeover Write-up Beginner

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.

zer0figure Follow

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.

Zer0Figure, on systemweakness.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 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

  1. Enter a phone number and request an OTP.
  2. Capture the OTP verification request in Burp Suite.
  3. Send the request to Intruder and try different OTP values.
  4. Observe that after a few attempts the server returns 429 Too Many Requests.
  5. Add a changing X-Forwarded-For header to each request.
  6. 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.

More by zer0figure

View all

11 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.