Skip to content
File upload Disclosed report Beginner

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.

michaelrowley Follow

Originally disclosed on HackerOne

Medium 6.3 View original
  • 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.

The original report as published on HackerOne, by michaelrowley. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by michaelrowley

View all

1 more disclosed report, best first.

More from Enjin

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.