Skip to content
IDOR Write-up Beginner

Accidental IDOR

An update-address API endpoint accepted an email address as the identifier for the account being modified, and the server did not check that the caller owned that account. An attacker could read, change or delete the address details of another user's account by supplying that user's email.

Saad Ahmed Follow

Published on medium.com

{{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 endpoint used the caller-supplied email as the account identifier and performed no ownership or authorisation check before reading, updating or deleting the address.

Impact

An attacker could view, modify or delete the address details of other users' accounts by supplying their email addresses.

What the attacker needed

An account on the site; knowledge of a victim's email address

How it was found

  1. Probe the update-address function and change the content type to text/plain, which returned an error revealing a hidden endpoint.
  2. Send an OPTIONS request to the hidden endpoint to see which methods it allows.
  3. Send a GET request to the hidden endpoint, which returned account information for the email in the request.
  4. Create a second account and replace the email in the endpoint with the second account's email.
  5. Send a PUT request to update the second account's address, and a DELETE request to remove it.

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 change your own details, it should check that the record you are changing really belongs to you. Here it identified the record by the account's email address and never checked ownership, so swapping in someone else's email let the tester act on their account. This kind of flaw is called an insecure direct object reference, or IDOR.

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.