How I found my first IDOR in HackerOne
Uploaded payment receipts were served from a URL containing a simple sequential numeric identifier, and the server did not check that the requester owned the attachment. An attacker could change that number to view other customers' receipts, which exposed signatures, PayPal addresses and home addresses, and uploaded images also kept their GPS metadata.
In the name of Almighty, Allah, i begin. This write up is about how I found my first IDOR in HackerOne and got my first swag.
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 attachment endpoint looked up files by a sequential numeric identifier without verifying that the file belonged to the requesting user.
Impact
An attacker could view other customers' payment receipts, exposing signatures, PayPal addresses and home addresses, and uploaded images retained GPS location data.
What the attacker needed
Two accounts on the target; ability to upload a payment receipt; victim has uploaded a receipt
How it was found
- Create two accounts and upload a payment receipt from the second account.
- Note the attachment URL, which contains a numeric identifier.
- Upload a receipt from the first account and request the second account's URL while logged in as the first.
- Brute force the numeric value to enumerate other users' receipts.
- Upload an image containing GPS metadata and download it again to check whether the metadata was stripped.
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 upload a file to a website, the site gives it an address so it can be shown again later. Here that address ended in a plain counting number, and the site never checked whether the person asking for the file was the one who uploaded it. So anyone could swap the number for another one and read a stranger's private document.
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.