Skip to content
IDOR Write-up Beginner

How a Simple IDOR Earned Me a $10000+ Bounty

An endpoint that returned employee lists for an organisation accepted an identifier supplied by the client without checking that the caller belonged to that organisation. An attacker could change the identifier to read employee data belonging to other companies.

medium.com

Published on medium.com

Broken access control continues to be one of the most impactful vulnerabilities in modern web applications. In this blog, I’ll walk you through how a simple IDOR (Insecure Direct Object Reference) led to unauthorized access to sensitive employee data — and ultimately earned a $1000 bounty.

Sachin Aneja, 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 endpoint performed no object-level authorisation check, so any authenticated user could request another organisation's user list by changing the identifier.

Impact

An attacker could enumerate other organisations and harvest employee names and potentially sensitive personal data, which could then be used for phishing or further attacks.

What the attacker needed

A valid account on the application; ability to intercept and modify requests

The fix

The endpoint should enforce object-level authorisation, checking that the authenticated user is permitted to access the requested organisation's identifier.

How it was found

  1. Log in to the application with the provided test credentials.
  2. Open Me, then Expense Management, then Configuration, then Users.
  3. Intercept the request to the admin getallusers endpoint.
  4. Change the organisation identifier in the request body to another valid value.
  5. Forward the request and observe the returned employee list.

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 web apps put an identifier in a request to say which company's data you want. If the server trusts that identifier without checking that you really belong to that company, you can swap it for someone else's and read their data. This 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.

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.