Skip to content
IDOR Write-up Beginner

Day 14 — I Changed One Number and Suddenly Everyone’s Data W

The application checked that a user was logged in but did not check that the requested profile belonged to that user, so changing the numeric id in the profile URL returned another user's personal data. An attacker could iterate the id to enumerate every user's profile.

Issan Follow

Published on medium.com

And since today is Holi, let’s talk about a vulnerability that spreads access everywhere…

Issan, 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 object id supplied by the client and never verified that the logged-in user owned that record.

Impact

An attacker could read other users' personal data and potentially enumerate every user in the system by iterating the id.

What the attacker needed

A logged-in account; ability to change the id parameter

The fix

The server should always verify ownership of the requested object, for example by including the current user in the query and using role-based access control.

How it was found

  1. Log in and open your own profile page, which has a numeric id in the URL.
  2. Change the id in the URL to a different number.
  3. Refresh the page and observe another user's profile data.

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.

When you log in, the site gives you a profile page with a number in the address, like id=101. The site only checked that you were logged in, not that profile 101 was yours. By changing the number to 102, you could see someone else's profile 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 Issan

View all

3 more disclosed reports, 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.