Skip to content
IDOR Write-up Beginner

How I Found an IDOR Vulnerability and Accessed 100000+ User Detai

An API endpoint returned user profile data based on a user_id parameter without checking that the requester was authorised to view that user. An attacker could change the user_id to read other users' personal details, including names, emails, phone numbers and addresses.

Harsh Bardhan Follow

Published on harshbardhanx.medium.com

Bug bounty hunting is full of surprises. Sometimes, the simplest vulnerabilities can lead to massive security breaches.

Harsh Bardhan, on harshbardhanx.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 endpoint lacked an authorisation check to ensure the authenticated user was requesting their own profile data.

Impact

An attacker could extract the personal details of every user, potentially leading to a massive data leak, GDPR violations, and phishing or social engineering attacks.

What the attacker needed

A valid user account; ability to intercept HTTP requests

The fix

The company fixed the issue within 24 hours.

How it was found

  1. Intercept network traffic using Burp Suite and analyse API requests.
  2. Notice a request to /api/v1/user/profile with a user_id parameter.
  3. Change the user_id value manually in the request.
  4. Observe that the response contains another user's details.

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 uses a simple identifier, like a user number, to decide what data to show, but does not check that the person asking is allowed to see it. Here, changing the number in the request let the researcher view other people's profiles. This is like a hotel giving you a room key that opens any door with the same number pattern.

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.

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.