Skip to content
IDOR Write-up Beginner

The Header No One Was Watching: Leaking sensitive data (quitely)

The backend trusted a client-supplied header to decide which account's data to return, instead of deriving identity from the authenticated session. An attacker could change that header value to another account's identifier and read that account's financial data.

medium.com

Published on medium.com

I didn’t find this bug because something was broken. I found it because something felt too clean.

sin99xx, 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 backend used a client-controlled account identifier header for authorization instead of the authenticated user's identity from the JWT.

Impact

An authenticated user could read other accounts' transaction history, rewards and billing preferences by changing one header value; the text does not mention any defence that limited this.

What the attacker needed

An authenticated account; knowledge of another account's identifier

How it was found

  1. Capture a request to the transaction history endpoint and note the account identifier header.
  2. Replay the request unchanged and confirm the normal response.
  3. Change only the account identifier header to the value from a second account.
  4. Send the request and observe the second account's financial data returned.

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 log in, the server should work out who you are from your session, not from anything your browser sends in a header. Here the server believed a header that the client could freely edit, so changing one number let the tester see another account's data. This is called an insecure direct object reference (IDOR): the server fails to check that the requested record belongs to the person asking.

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.

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.