Skip to content
IDOR Write-up Beginner

#1. Bug Bounty POC: IDOR leads to Account Takeover

An update-applicant request used a user-supplied id parameter without checking that the record belonged to the caller. By swapping their own id for the victim's, an attacker could change the victim's email address and then reset the password to take over the account.

cyb3rmind Follow

Published on cyb3rmind.medium.com

Hello guys 👋 I’ve returned with yet another article, but this one is a series on vulnerabilities that I found, reported, and received a reward for.

Cyb3r M!nds, on cyb3rmind.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 used the client-supplied id to select the record to update without verifying that the record belonged to the authenticated user.

Impact

An attacker could change a victim's email and other details and then reset the password, fully taking over the account.

What the attacker needed

Two accounts (attacker and victim); a proxy tool to intercept requests; victim record id known or guessable

How it was found

  1. Create two accounts, one as victim and one as attacker.
  2. Log in and open the update existing applicant details screen.
  3. Intercept the update request with a proxy and send it to the repeater.
  4. Change the id value from the attacker's to the victim's and add new information, then send it.
  5. Use the changed email address with the forgot password flow to reset the victim's password.

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 a website lets you edit a record, it should check that the record is really yours. Here it trusted an id number sent by the browser, so changing that number let the attacker edit someone else's profile. Because the email address controls password resets, the attacker could then 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 cyb3rmind

View all

3 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.