Skip to content
IDOR Write-up Beginner

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.

morgan_hack Follow

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.

morgan_hack, on medium.com

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

  1. Log in and visit your account page, noting the id parameter in the URL.
  2. Send the account request to Burp Repeater.
  3. Change the id parameter from your username to the victim's username.
  4. Send the request and read the full response body, not just the 302 status.
  5. 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.

More by morgan_hack

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.