Skip to content
IDOR Write-up Beginner

How I Found an IDOR Vulnerability in a Local News App and What You Can Learn From It

The application used user-supplied identifiers in API requests without checking whether the requester was authorised to access or modify that user's data. An attacker could view other users' profile details and change their name, email and phone number.

sulmanfarooq531 Follow

Published on medium.com

Hey folks! It’s been a while since I last wrote a blog, but I’ve got something interesting to share this time.

Sulman Farooq S, 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

The server trusted the user ID supplied by the client instead of deriving the authenticated user's identity from the session.

Impact

An attacker could view other users' personal information and modify their profile data, potentially leading to account takeovers.

What the attacker needed

A user account; ability to intercept HTTP requests

The fix

The application should enforce server-side authorisation and use the session or token to determine the authenticated user's ID instead of client-supplied data.

How it was found

  1. Configure Burp Suite as a proxy to intercept traffic.
  2. Open a user profile and observe the request containing the user ID.
  3. Change the user ID in the request and forward it to view another user's profile.
  4. Intercept a profile update request and change the user ID to another user's ID.
  5. Forward the modified update request and reload the victim's profile to confirm the change.

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) happens when a website lets you ask for a record by its ID, like a user number, and does not check that the record belongs to you. Here, changing the number in the request returned someone else's profile, and a similar change let the author edit another person's details.

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 sulmanfarooq531

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.