Unrestricted Upload of File with Dangerous Type
A legacy image upload API endpoint allowed files with dangerous types to be uploaded directly to the CDN with the file's own MIME type. An attacker could upload a malicious file that might be executed or served in a harmful way.
Originally disclosed on HackerOne
- Triaged in 4 hours
- Fixed in 24 hours
- Paid in 18 hours
- Disclosed after 25 hours
Summary by the program
The security researcher was able to execute CWE-434: Unrestricted Upload of File with Dangerous Type through a legacy API endpoint used to upload images. This file was directly upload to our CDN with the appropriate MIME time of the file.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the legacy upload endpoint did not validate or restrict the file type before storing it on the CDN.
Impact
An attacker could upload a dangerous file that might be executed or used to attack users, though the text does not specify the exact outcome.
What the attacker needed
Access to the legacy upload endpoint
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 report has not been written yet. The Original tab links to the source.
A file upload feature should only accept safe file types like images. Here, an old API endpoint let people upload files that could be dangerous, and those files were stored on the content delivery network (CDN) with their original type. This could let an attacker upload something harmful that the system might later run or serve to other users.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.