Skip to content
IDOR Write-up Intermediate

How I uncover an IDOR led to access Private CV access

A CV download endpoint authorised requests using only a JWT whose user ID was a short three-digit number, and tokens were exposed in archived URLs. By swapping in other users' tokens, the author downloaded 458 CVs belonging to other people.

medium.com

Published on medium.com

Hello everyone! Today, I’m excited to share how I discovered an IDOR vulnerability in one of the private programs.

JEETPAL, 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 download endpoint trusted the JWT alone without checking that the token's user owned the requested CV, and the predictable short user ID made tokens guessable.

What the attacker needed

A free account; valid JWT tokens for other users

How it was found

  1. Enumerate subdomains and gather archived URLs to find a test portal.
  2. Sign up, confirm the account and log in.
  3. Upload a CV through the profile section.
  4. Find the CV download endpoint and note it uses only the Authorization header.
  5. Replace the token with one from a second account and download that account's CV.
  6. Brute-force tokens using the short user ID to download many CVs.

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 CV is a personal document, and a token is a short piece of text a website gives you after login so it knows who you are. Here the site trusted any valid token to fetch any CV, and the number inside the token was easy to guess, so someone could fetch other people's documents.

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.