Hacking My Way to $3,000: Unmasking a Sneaky IDOR Vulnerability
The documents API endpoint accepted a numeric document ID without checking whether the logged-in user owned that document. An attacker could change the ID to read other users' private files, including invoices, contracts and credentials.
Published on cybersecuritywriteups.com
Bug bounty hunting is like a digital treasure hunt — except the gold is real, and the maps are written in code. In this blog, I’ll walk you through how I discovered an Insecure Direct Object Reference (IDOR) vulnerability that allowed me to access any user’s private data on a popular SaaS platform — and earned me a…
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 API looked up documents by their sequential ID and returned them without verifying that the requesting user was the owner or had permission.
Impact
An authenticated attacker could read other users' private documents, including invoices, contracts and employee credentials, which could lead to further compromise and regulatory issues.
What the attacker needed
A valid account on the platform; knowledge of a document ID
The fix
The text does not state that the issue was fixed; it recommends adding user-specific access checks and using UUIDs instead of sequential IDs.
How it was found
- Open the Documents feature and note the numeric document ID in the request URL.
- Change the ID to a neighbouring number and observe that another user's private file is returned.
- Automate the process with a script that cycles through many IDs to collect exposed documents.
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 a simple identifier, like a number in a URL, to point at a private item but forgets to check that the person asking is allowed to see it. Here, changing the number in the document URL let the researcher open files belonging to other users.
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.