How I Found a Bug Worth $3,500 — In a Feature Nobody Was Watching.
The file upload form trusted a client-supplied size field, allowing a user to store a file far larger than the limit and exhaust storage. The same form rendered the filename unsanitised in an admin-only review screen, so a crafted filename executed code in an administrator's browser days later.
A storage-exhaustion flaw. A stored XSS that waited for an admin.
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 trusted client-supplied metadata (declared file size and filename) without validating the actual bytes or sanitising output in the admin review screen.
Impact
An unprivileged uploader could exhaust storage and degrade shared infrastructure, and could execute code in an administrator's browser to hijack their session and perform forged actions.
What the attacker needed
A user account on the platform; ability to upload files; an admin reviews the uploaded file
The fix
The text says remediation is in progress; the fix should validate the actual file size server-side and sanitise the filename before rendering it in the admin screen.
How it was found
- Find the file upload form and note the separate metadata request sent after the main upload.
- Send a file with a spoofed size value in the metadata request so the server stores the real large file.
- Upload a file with a crafted filename that is rendered unsanitised in the admin-only review screen.
- Wait for an administrator to open the file's details, at which point the payload executes in their browser.
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 file upload form let people send extra information about the file, such as its size, and the server believed that information instead of checking the actual file. Separately, the name of the uploaded file was shown without cleaning it up on a page only administrators use, so a malicious name could run code in the administrator's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.