Skip to content
Account takeover Write-up Intermediate

How I Bypass The Otp Of A Well Known Website

The OTP verification step could be bypassed by replacing the server's response to a wrong-OTP request with a previously captured successful response from the attacker's own number. An attacker could then log in to an account tied to a victim's phone number without knowing the OTP.

Rajneesh Kumar Arya Follow

Published on systemweakness.com

Hello Learners, I am Rajneesh K. Arya again here with my new blog on OTP bypassing.

Rajneesh Kumar Arya, 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

Impact

An attacker could create or access an account tied to a victim's phone number without knowing the OTP, giving access to that victim's account.

What the attacker needed

A phone number already registered by the attacker; victim's phone number; Burp Suite to intercept and edit responses

How it was found

  1. Register an account and enter the already registered phone number, then wait for the OTP.
  2. Enter the correct OTP and intercept the request in Burp Suite.
  3. Send the request to Repeater, forward it, and copy the server response.
  4. Enter the victim's phone number and request an OTP.
  5. Enter a random OTP and intercept the verification request and its response.
  6. Replace the response with the copied attacker response, forward it, and the account is created for the victim's number.

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 website sends a one-time code (OTP) by text message to prove you own a phone number. Here the site trusted the reply it got back from the browser too much: by swapping in a saved 'success' reply from the attacker's own login, the site accepted a wrong code for someone else's number. That let the attacker get into an account that belonged to another person's phone.

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 Rajneesh Kumar Arya

View all

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