Skip to content
Account takeover Write-up Intermediate

I Got Paid 10K for One Vulnerability. Here’s Exactly How I Did It.

The login API after OTP verification accepted a user-supplied profileId without checking it belonged to the verified user. An attacker could swap their own profileId for a victim's publicly visible profileId and log into the victim's account without any OTP or password.

osintteam.blog

Published on osintteam.blog

Not a technical write-up. Just the raw, honest account of how I found a full account takeover in a dating web app — and more importantly, what was going through my head the entire time.

Vivek PS, on osintteam.blog

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

The API trusted a user-controlled profileId in the final login step without verifying it belonged to the user who completed OTP verification.

Impact

Any registered user could log into any other account using only their own phone number and a victim's publicly accessible profileId, resulting in full account takeover.

What the attacker needed

A registered account with a phone number; ability to intercept HTTP requests; victim's profileId (publicly visible)

The fix

The login API should verify that the profileId in the request matches the identity that completed OTP verification, rather than trusting user-supplied input.

How it was found

  1. Enter your own phone number and complete OTP verification normally.
  2. Intercept the final login API request with Burp Suite before it is sent.
  3. Replace the profileId value with the victim's publicly visible profileId.
  4. Forward the modified request to log into the victim's account.

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 or log in, the app often uses a multi-step process. Here, after you prove you own a phone number with a one-time code (OTP), the app sends a final request to log you in. That request included a profile ID that the user could change. The app trusted that ID without checking it matched the person who just proved their identity, so changing it logged you into someone else's account.

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.