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.
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.
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
- Open the cart receipt page in a browser.
- Click the link for a corporation's report.
- The site redirects to a PDF retrieval page with an identifier in the URL.
- Change the identifier value in the URL to another number.
- 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.