How I Earned My First Bug Bounty and What It Taught Me About Ethical Hacking
A web app allowed users to access other users' uploaded documents by changing the document ID in the URL, with no authentication or permission check. An attacker could view files belonging to other users.
Published on medium.com
The moment I received the email confirming my first successful bug bounty submission, I was sitting on my couch, half-eaten pizza on the table, and a dozen browser tabs open like a chaotic constellation of curiosity. It wasn’t a big payout — just $300 — but it felt like a million bucks to me.
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 server trusted the document ID supplied by the user and did not verify that the requesting user owned or had permission to access that document.
Impact
An attacker could view other users' uploaded documents without authorisation.
What the attacker needed
A user account on the web app; knowledge of another document ID
How it was found
- Open the web app that lets users upload and manage documents.
- Change the document ID in the address bar to a different number.
- Observe that another user's file is displayed without any permission check.
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 app used a number in the web address to identify each document. By changing that number, the person could open documents that belonged to other users, because the app did not check whether they were allowed to see them.
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.