Skip to content
IDOR Write-up Intermediate

IDOR — Account Takeover

An IDOR vulnerability allowed changing another user's account details by replacing the user ID in a request. By adding an email parameter to the JSON body, an attacker could change any user's email address, leading to account takeover.

Saad Ahmed Follow

Published on medium.com

Bounty$500 View original

{{media:0}}

Saad Ahmed, 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 server did not verify that the authenticated user owned the user ID being updated, and it accepted an email field in the update request without proper authorisation checks.

What the attacker needed

A free account; knowledge of victim's user ID

How it was found

  1. Create an account and observe the request that updates account details, which includes a user ID.
  2. Create a second account and replace the user ID in the request with the second account's ID to confirm the IDOR.
  3. Find a request that searches for an email and returns the associated user ID.
  4. Add an email parameter to the JSON body of the update request.
  5. Send the modified request to change another user's email address, leading to account takeover.

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.

An IDOR (Insecure Direct Object Reference) happens when a website uses an identifier like a user ID in a request but doesn't check if you are allowed to access that user's data. Here, the attacker could change the ID to another user's ID and modify their profile, and by adding an email field, take over their 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.

More by Saad Ahmed

View all

9 more disclosed reports, best first.

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.