Skip to content
Account takeover Write-up Beginner

FROM OUT OF SCOPE TO ACCEPTED

The authentication token issued after a successful OTP verification was not bound to the phone number or session, so the same token could be reused to authenticate as any other account. An attacker could sign in as arbitrary users by replaying a single valid token.

medium.com

Published on medium.com

After a long time guys, I am writing this to let you all know how an out of scope bug became accepted in one of my submissions

ProwlSec, on medium.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 authentication token was not bound to the phone number or session it was issued for, allowing it to be replayed for any account.

What the attacker needed

A valid auth_token from any account; knowledge of a target phone number

How it was found

  1. Sign up on the site and enter a phone number to receive a six-digit OTP.
  2. Complete the OTP verification and capture the auth_token returned in the response.
  3. Start a new login with a different random phone number and submit any random six-digit OTP.
  4. Replace the response with the previously captured auth_token to gain access without valid authorisation.

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 log in with a one-time code sent to your phone, the server gives your browser a token that proves you logged in. Here, that token was not tied to the phone number it was issued for, so anyone who obtained one valid token could use it to log in as a completely different person.

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.

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.