Skip to main content

Unrestricted Upload of File with Dangerous Type


Severity Medium
Score 5.4/10


As a simple library, "class.upload.php" does not perform an in-depth check on uploaded files, allowing a stored Cross-Site Scripting (XSS) vulnerability when the default configuration is used. Developers must be aware of that fact and use extension whitelisting accompanied by forcing the server to always provide content-type based on the file extension. The README has been updated to include these guidelines.

  • LOW
  • LOW
  • LOW
  • LOW
  • NONE

CWE-434 - Unrestricted Upload of File with dangerous type

'Unrestricted file upload with dangerous type' attacks involve an attacker uploading or transferring files of dangerous types to the server. The severity of such an attack depends upon the execution mechanism and the storage location of the uploaded file. Thus, it may range from simple defacement to arbitrary file execution, and complete system takeover.


Advisory Timeline

  • Published