Breaking Access Control: Object References & Data Leakage (Part 3)
The article describes several IDOR vulnerabilities where changing a user ID parameter or guessing sequential file IDs allowed access to other users' private data, including API keys and chat transcripts with plain-text passwords. An attacker could view another user's profile, API key, or historical chat containing a password.
In this final part of our series, we focus on Insecure Direct Object References (IDOR) and sensitive data exposure. These vulnerabilities occur when an application provides direct access to objects (like files, user profiles, or API keys) based on user-supplied input without verifying if the user has the right to…
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 uses user-controllable input (like a URL parameter or sequential file ID) to fetch sensitive objects without verifying that the requesting user is authorised to access them.
Impact
An attacker could access other users' private data, including API keys and chat transcripts containing plain-text passwords, potentially leading to account takeover.
What the attacker needed
A free account; victim has an account; attacker can guess or obtain victim's ID
The fix
The application should use indirect, non-enumerable references (like session-based lookups) and verify the session's authorisation before serving any private resource.
How it was found
- Log in to your account and notice the URL contains an id parameter.
- Change the id value to another user's identifier.
- Observe that you are redirected to the other user's account page, exposing their private API key.
- For unpredictable IDs, find a leaked UUID in a public blog post.
- Replace your own ID with the leaked UUID to access another user's profile.
- For chat transcripts, guess a sequential file ID to download a previous chat containing a plain-text password.
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 something you can change, like a number or name in the web address, to decide which data to show you, without checking if you are allowed to see it. For example, if your profile page is at example.com/profile?id=123, you might change 123 to 124 and see someone else's profile. The fix is for the website to check on its server whether you have permission before showing any private data.
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.