From 403 Forbidden to $$ How a Simple Extension Bypass Led to Unauthenticated Access to Private…
A private document that returned 403 Forbidden when accessed directly became readable without authentication once a .pdf extension was appended to the URL. An unauthenticated attacker could therefore read private organisation documents by guessing or knowing their paths.
The target was a private HackerOne program that allows users to create organizations, upload documents, and share them naturally, documents created inside an organization are expected to be private by default, accessible only to authenticated and authorized users. Since the platform handles internal files (documents…
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 server routed requests ending in .pdf through a different handler that served files without applying the same authorisation check.
Impact
An unauthenticated attacker could read private documents belonging to an organisation, provided they knew or could guess the file path.
What the attacker needed
Knowledge of the private file path; no account needed
How it was found
- Find a document uploaded inside an organisation and note its direct URL.
- Request the URL directly and observe a 403 Forbidden response.
- Repeat with other extensions such as .png, .docx and .csv; all return 403.
- Repeat the request from an unauthenticated incognito browser; still blocked.
- Append .pdf to the same file path and request it unauthenticated.
- Observe a 200 OK response with the file content loading successfully.
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 website is supposed to check who you are before showing a private file. Here the check was skipped when the address ended in .pdf, so anyone could open the file without logging in. This is a broken access control bug: the server trusted the file extension instead of checking permissions.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.