How a Broken “Preview” Button Exposed 800,000 Private Documen
A document preview feature sent the internal storage path of a file to a thumbnail rendering API that did not check ownership of that path, only of the original document ID. An attacker could change the path to another organisation's document and receive a rendered image of it, exposing private HR documents across tenants.
If there’s one lesson every bug hunter learns the hard way, it’s this: The most dangerous features are often the ones built purely for user convenience.
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
Impact
An attacker could render page-by-page thumbnails of over 800,000 private corporate documents, including tax forms, W-2s, direct deposit details, and government IDs, from other organisations.
What the attacker needed
A valid account on the platform; ability to intercept and modify HTTP requests
How it was found
- Intercept the preview request and note the document ID parameter.
- Change the document ID to another value and observe a 403 response, confirming ownership checks on that endpoint.
- Inspect network logs and find a background POST request to a thumbnail rendering endpoint that includes an internal storage path.
- Modify the document_path parameter in that POST request to point to a different organisation's document.
- Send the request and receive a 200 response containing a Base64-encoded image of the other document.
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 preview a document, the website asks a server to make a small picture of it. The server was told exactly where the file lives but never checked whether the person asking was allowed to see that file. By changing the location, someone could see other companies' private 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.