How I Discovered a Critical Security Flaw | Unauthenticated File Download via Public File URL
A file download URL returned by an API was publicly accessible without any authentication or authorization checks. An attacker who obtained the URL could download the file without logging in, potentially exposing sensitive data.
Published on medium.com
During a recent security assessment, I stumbled upon a vulnerability that is both simple and dangerous: unauthenticated file download via a publicly accessible file URL. This post shares the details of the finding, why it matters, and how it should be fixed to protect sensitive data.
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 file storage or delivery mechanism did not enforce authentication or authorization checks on the file URL.
Impact
Anyone with the URL could download files without authentication, potentially leaking sensitive or proprietary information.
What the attacker needed
Obtaining the file URL; no authentication required
The fix
The file download endpoint should enforce authentication and authorization checks, and use expiring or signed URLs instead of permanent public links.
How it was found
- Log in to the app and obtain the fileURL from the API response.
- Log out and paste the same URL in a separate browser session or on a different device.
- Try accessing the URL without any session or credentials.
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 upload a file to a website, the site usually gives you a special link to download it. This report found that the link worked for anyone, even people who were not logged in. That means if the link was shared or guessed, strangers could download private files.
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.