Skip to content
Account takeover Write-up Beginner

I Typed 000000 As The Otp The Website Let Me In

The OTP verification endpoint returned a 200 status with an empty JSON body on failure, and the client-side code trusted a specific success field in the response body to proceed. An attacker could intercept the failure response, change it to the success value, and complete registration with a fake phone number without ever receiving the OTP.

LordofHeaven Follow

Published on infosecwriteups.com

I was registering an account on a platform — call it target.com — and reached the phone number step. Standard habit: I don’t use my real number on random platforms.

LordofHeaven, on infosecwriteups.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 communicated the OTP verification result only as a client-side JSON field and did not issue a server-side session token tied to a genuine successful check, so the client trusted a value it could alter.

Impact

An attacker could register accounts with fake phone numbers, defeating phone verification for fraud prevention, identity binding, and account recovery; the report says the issue remained unfixed two years after disclosure.

What the attacker needed

A proxy to intercept traffic; ability to register with any phone number; no access to the target phone needed

The fix

The server should issue a short-lived server-side session token only after a genuine successful OTP check and require that token for every subsequent step in the registration flow.

How it was found

  1. Register with a random phone number not owned by the attacker.
  2. Capture the OTP verification request with a proxy.
  3. Submit a wrong OTP and observe a 200 response with an empty JSON body.
  4. Create a second account with a real number and capture the success response containing a specific field.
  5. Replay the wrong OTP request and modify the intercepted response to the success value.
  6. The site proceeds to account setup and onboarding.

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 website sends a one-time code (OTP) to your phone to prove it is really yours. The server checks the code and tells your browser whether it was right. Here, the browser believed whatever the server said, and the server did not remember the check afterwards. So someone using a tool to intercept traffic could change the 'wrong code' message into a 'correct code' message, and the site let them in without ever seeing the real code.

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 LordofHeaven

View all

9 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.