Skip to content
IDOR Write-up Beginner

How I Uncovered an IDOR That Exposed Other Employee’s Personal

An employee profile endpoint accepted a user ID and returned that user's personal data without checking whether the requester was allowed to view it. Any employee could change the ID to read other employees' names, phone numbers, emails, dates of birth and similar details within the same organisation.

Hari Kishore Follow

Published on medium.com

Hello Everyone, Hari Kishore here, I’m a Security Researcher and an Ethical Hacker.

Hari Kishore, 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 profile endpoint applied tenant-level checks but did not enforce role-level authorisation, so any employee could request another employee's profile by its numeric identifier.

Impact

Any employee could read other employees' personal data within the same organisation, but employees of other organisations could not, because tenant-level restrictions were in place.

What the attacker needed

An employee account; knowledge of another employee's numeric ID

The fix

The text says the vulnerability was resolved; the fix should enforce server-side authorisation so an employee can only fetch their own profile.

How it was found

  1. Create an organisation with an admin account and several employee accounts for testing.
  2. Log in as an employee and open the profile page, then intercept the request that fetches the profile data.
  3. Replace the user ID in the request with another employee's ID and send it.
  4. Observe that the server returns the other employee's full profile data.
  5. Use an automated tool to try a range of IDs and note which return data and which return not found.

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 web application often uses a number in a request to say which record it wants, such as a profile. If the server trusts that number without checking that the person asking owns that record, someone can change the number and read another person's information. 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.