Skip to content
IDOR Write-up Beginner

IDOR To Massive Government Data Leak

An endpoint that served filing PDFs by a sequential numeric identifier had no authentication or authorisation check, so anyone could request any filing by changing the number. An attacker could enumerate the identifiers and download a large volume of users' PDF filings in bulk.

Bishal Shrestha Follow

Published on bishal0x01.medium.com

Hello, everyone! I am back with one of my findings that I reported in late January 2023 and was marked as resolved a few months ago.

Bishal Shrestha, on bishal0x01.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 PDF retrieval endpoint looked up records purely by the supplied identifier and never verified the requester's identity or ownership of the filing.

Impact

An unauthenticated attacker could download a large number of users' PDF filings in bulk, exposing sensitive data; the report notes some of the data could be searchable.

What the attacker needed

No account needed; guessable sequential identifiers

How it was found

  1. Open the cart receipt page in a browser.
  2. Click the link for a corporation's report.
  3. The site redirects to a PDF retrieval page with an identifier in the URL.
  4. Change the identifier value in the URL to another number.
  5. Automate the identifier range with a script to download many PDFs at once.

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.

Many websites fetch a document by putting a number in the address, such as a filing number. If the site never checks that you are allowed to see that particular document, you can simply try other numbers and read other people's files. This is called an insecure direct object reference: the site trusts the number you supply instead of checking your permission.

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 Bishal Shrestha

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.