Skip to content
IDOR Write-up Intermediate

How I Discovered Account Takeover (ATO) via IDOR lead to 500$ bounty

A registration endpoint accepted a user identifier and contact details without any authentication, so an attacker could swap in another user's identifier and change that user's email and phone number. The attacker could then use the password reset flow to take over the victim's account.

infosecwriteups.com

Published on infosecwriteups.com

Today, I want to share my experience of discovering an account takeover (ATO) vulnerability through IDOR. Let’s dive right in!

JEETPAL, 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 registration/verification endpoint trusted a client-supplied user identifier and contact fields without authenticating the caller or checking that the identifier belonged to them.

Impact

An attacker could take over another user's account by changing their email and phone and then resetting the password; the reporter notes the phone verification was also bypassed.

What the attacker needed

A free account; attacker knows victim's identifier; victim's email/phone can be changed

How it was found

  1. Register a first account and confirm email and phone.
  2. Observe the unauthenticated POST request containing the user identifier and contact fields.
  3. Create a second account and copy its identifier.
  4. Replace the identifier in the request with the second account's identifier and change the email and phone to the attacker's own.
  5. Use the forgot-password flow with the new email, set a new password, and complete phone verification with the OTP received on the attacker's phone.

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 site sends your details to its server. This report found that the server trusted whatever identifier and contact details were sent, without checking that the person sending them was really that user. By changing the identifier to someone else's, the attacker could redirect that person's email and phone to their own, then reset the password and take over the account.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.