Skip to content
IDOR Write-up Beginner

How I Earned my Second Bounty of €2000 by Discovering an Authorization Bypass Vulnerability in a…

The application failed to enforce server-side authorization checks on file access, allowing a logged-in user to read another user's document by changing the file identifier and Referer header. An attacker could access any user's documents without permission.

sohelparashar Follow

Published on medium.com

In this blog, I’ll walk you through my second successful bug bounty,a critical Authorization Bypass File Read vulnerability I discovered in a popular document-handling platform. This issue allowed unauthorized access to user documents and ultimately earned me a €2000 reward through their responsible disclosure program.

Risky, 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 relied on the Referer header and did not verify that the requested file belonged to the authenticated user.

Impact

Any logged-in user could read documents they did not own, potentially exposing sensitive information.

What the attacker needed

A free account; victim has a document

The fix

The issue was fixed by enforcing server-side authorization checks and not relying on the Referer header.

How it was found

  1. Log in as User A and open a document.
  2. Log in as User B and view a different document.
  3. Intercept the file request from User A's session.
  4. Replace the file identifier with User B's document identifier and change the Referer header to match User B's request.
  5. Forward the modified request and receive User B's document while still logged in as User A.

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 into a website, the site should check that you are allowed to see each file you ask for. Here, the site only checked that you were logged in, not that the file belonged to you. So by changing a number in the request, one user could open another user'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.

More by sohelparashar

View all

1 more disclosed report, 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.