Skip to content
IDOR Write-up Beginner

How I found my first P3 bug (disclosure of PII/Privilege Escalation)

A user profile endpoint used a guessable numeric identifier, and by changing the request method and body encoding an attacker could retrieve other users' profile data including user ID, username, location, role and image URI. The report was closed as a duplicate.

the.bugcrowd.testerpawan Follow

Published on medium.com

before going to the program I would like to say something, recently I have decided to give all what I have to a single program (even if it go for many months I won’t stop until I find something better and better like today, you can find my update post about my ongoing work here (twitter). So without further due lets…

the_air_cyborg, 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 relied on a guessable numeric identifier for user profiles and did not consistently enforce authorisation checks across different request methods and body encodings.

Impact

An attacker could retrieve limited profile information (user ID, username, location, role and image URI) of other users, but email and other sensitive data were not exposed, so the impact was low.

What the attacker needed

A normal user account; ability to intercept and modify HTTP requests

How it was found

  1. Browse the application as a normal user with an intercepting proxy running.
  2. Observe a request to a user profile endpoint that includes a numeric user identifier.
  3. Change the numeric identifier to another value and note that the server returns 403 Forbidden.
  4. Try changing the request method from GET to POST, which still returns 403 Forbidden.
  5. Send an OPTIONS request and see that GET, POST, HEAD, OPTIONS and PUT are allowed.
  6. Change the request back to GET and alter the body encoding, which returns another user's profile fields.

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.

A website was showing profile pages using a simple number in the address, like /user-profile/123. The author tried changing that number to see other people's profiles. At first the server blocked it, but after tweaking how the request was sent, the server returned some profile details for a different user. This is called an IDOR (Insecure Direct Object Reference): the server does not properly check that you are allowed to see the requested record.

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 the.bugcrowd.testerpawan

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.