Skip to content
IDOR Write-up Beginner

How I find my first P1 level Bug. $$$

While testing for cross-site scripting, the author noticed a numeric user identifier in an API URL and changed it to other values. The server returned other users' data, so an attacker could view sensitive information belonging to other accounts.

Harsh Follow

Published on medium.com

This is my second blog, Today I will share a write-up about how I was able to See the user sensitive information on a Private Program on BugCrowd.

Harsh, 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 API looked up records by the identifier supplied in the URL without checking that the record belonged to the requesting user.

What the attacker needed

An account on the site; a proxy tool to capture requests

How it was found

  1. Capture requests with a proxy and map the host's parameters.
  2. Try stored input in the first name and last name fields, editing the captured request.
  3. Send the first name and last name parameters to an intruder with a payload list.
  4. Notice an API URL containing the user's own identifier.
  5. Change the identifier up and down and observe other users' data returned.

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.

Many websites put a number in the address that identifies your account, such as /api/user/18. If the site does not check that the number belongs to you, changing it to another number shows someone else's account. This is called an insecure direct object reference, and it lets one person read another person's private data.

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 Harsh

View all

1 more disclosed report, 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.