Skip to content
IDOR Write-up Beginner

I Analyzed 12 IDOR-to-ATO Reports. The Email-Change Endpoint Wins

The article analyses twelve IDOR-to-account-takeover reports and finds that write-capable IDORs on email-change or edit-user endpoints allow an attacker to change a victim's email and then reset the password to take over the account. The most severe cases achieve full account takeover without any victim interaction.

Raj Namdev Follow

Published on medium.com

Most IDOR writeups stop at “I changedid=1toid=2and saw someone's data."

Raj Namdev, 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 checks that the user is authenticated but does not verify that the user owns the object referenced by the ID in the request.

Impact

An attacker could take over other users' accounts without any interaction from the victim, by changing their email and then resetting the password.

What the attacker needed

A free account; victim's user ID

The fix

The server should verify that the authenticated user owns the object referenced by the ID before allowing any write operation.

How it was found

  1. Create two accounts.
  2. Change the email on account A while proxying the request.
  3. Swap every ID-like field to account B's ID.
  4. If the response is 200 and B's email changes in a second browser, stop and document.
  5. Then test if the reset goes to the new address.

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) is when a website lets you access or change something by simply changing an identifier like a number in the request, without checking that you own it. In these reports, attackers changed the email address on someone else's account because the server only checked that they were logged in, not that the account belonged to them. Once the email is changed, the attacker can use the 'forgot password' feature to receive a reset link 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.

More by Raj Namdev

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.