Skip to content
Access control Write-up Beginner

BUG Bounty — The Upload Was Protected, But the File Was Public.

The endpoint serving support ticket attachments did not enforce any authentication or authorization checks, so anyone with the file's UUID could download it. An attacker who obtained such a URL could access sensitive uploaded documents without a session.

medium.com

Published on medium.com

Hello, Bug Hunter! In this writeup, I want to discuss a critical security misconfiguration I recently discovered during a bug bounty assessment.

Kenjisubagja, on 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 file-serving route relied solely on the unguessable UUID for access control instead of validating the requester's session against the file's permissions.

Impact

An attacker who obtains a file's UUID could download sensitive support attachments such as financial records or identity documents without authentication; a WAF blocked stored XSS attempts via SVG, so the confirmed impact was unauthorised data exposure.

What the attacker needed

Attacker knows the file's UUID; victim has uploaded a file

The fix

The file-serving route should validate the user's session against the file's access control list, or use short-lived signed URLs from private storage.

How it was found

  1. Create a support ticket using an authenticated test account.
  2. Upload a JPEG attachment to the ticket with a valid token, receiving a fileHash in the response.
  3. Request the attachment URL without any cookies or authorization headers.
  4. Observe a 200 OK response with the raw JPEG binary data.

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 it a long random name (like a UUID) to keep it secret. But if the server doesn't check who is asking for the file, anyone who learns that name can download it. This report shows that the file-serving endpoint skipped all login checks, so the random name was the only protection.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.