How I Discovered an Insecure Direct Object Reference (IDOR) Throu
A user profile endpoint used sequential numeric identifiers and returned other users' records when the identifier was changed, without checking ownership. An attacker could read contact information belonging to other accounts, including a higher-privileged one.
Published on medium.com
During one of my routine reconnaissance sessions, I was assessing publicly accessible assets belonging to a large healthcare organization. My objective was to identify exposed resources that might reveal common web application security issues.
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 application used predictable object identifiers and authenticated users but did not verify ownership or permissions before returning the requested record.
Impact
An attacker could read information belonging to other users, potentially including contact details of higher-privileged accounts and, depending on functionality, sensitive personal or administrative data.
What the attacker needed
A free account; victim account exists; guessable numeric identifiers
The fix
The endpoint should perform a server-side authorization check that the authenticated user owns or may access the requested record before returning it; the text says the issue was addressed.
How it was found
- Find a publicly indexed user profile endpoint that takes a numeric identifier.
- Open the page and note the numeric identifier in the URL.
- Change the identifier to another value and request that profile.
- Observe that another account's information is returned instead of an authorization error.
- Repeat with several identifiers, including ones that appear to belong to higher-privileged accounts.
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.
The website gave each user profile a simple number in the address, like profile 12 or profile 13. When the researcher changed that number, the site showed someone else's profile instead of refusing. This is called an IDOR: the site knows who you are but never checks whether the record you asked for is yours.
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.