This One-Word URL Change Paid Bug Bounty Hunters $10,000 — Here
The application fetched a user's account data based on a user ID parameter before checking whether the requester was authorised, then sent a redirect. An attacker could change the ID to another user's and read their API key from the redirect response body.
Published on medium.com
If you have been following my Access Control series, you know I have been working through PortSwigger Web Academy labs one by one, breaking down each vulnerability so beginners can understand exactly what is happening and why it matters in real bug bounty hunting.
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 fetched the requested user's data before verifying that the logged-in user was authorised to access it, and the redirect response still contained the fetched data.
Impact
An attacker could read another user's API key, which may allow further access to that user's account or data.
What the attacker needed
A free account on the lab; Burp Suite proxy configured; victim's username known
How it was found
- Log in and visit your account page, noting the id parameter in the URL.
- Send the account request to Burp Repeater.
- Change the id parameter from your username to the victim's username.
- Send the request and read the full response body, not just the 302 status.
- Copy the victim's API key from the response body and submit it.
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 app sometimes uses a number or name in the URL to decide which user's page to show. If it does not check that you are allowed to see that page before loading the data, you can change the name to someone else's and see their private information. Here the app did send a redirect, but it had already put the private data in the response, so tools like Burp Suite can still read it.
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.