From 403 Forbidden to PII Exposure: How I Escalated a Low-Severity Bug to a High P2
A file download endpoint used an id parameter to select files, and while the main route enforced access control, an alternative path lacked it. An attacker could enumerate ids to download internal documents containing user emails, names and loyalty points.
Published on medium.com
Recently, while testing a web application, I stumbled upon an interesting vulnerability that led to a high-severity data exposure. Here’s a breakdown of the full journey, from initial curiosity to reporting a P2-level issue (and teasing an even bigger finding soon!).
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 an alternative endpoint that served the same file-download function was missing the access-control checks present on the main endpoint.
Impact
An attacker could download internal documentation and files containing personal information (emails, names, loyalty points) for thousands of users, though no credentials or authentication tokens were found.
What the attacker needed
A valid user account on the portal
The fix
The alternative endpoints should enforce the same access controls as the main endpoint, and the issue was fixed after reporting.
How it was found
- Log in to the portal and open the Portal User Guide section.
- Click View More and then Download while intercepting traffic to capture the POST request to /Dashboard/GetFile with an id parameter.
- Try changing the id value and observe a 403 Forbidden response.
- Fuzz the URL path with ffuf to discover an alternative endpoint /Profile/GetFile.
- Send requests to the alternative endpoint while bruteforcing the id parameter to download files.
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.
A web application lets users download files by sending a number (an id) to the server. The main download page checked whether you were allowed to ask for that file, but another page that did the same job did not check. By trying many different numbers, the tester could download files belonging to other people, including personal details.
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.