CyberSecBulletin

Reliance on File Name or Extension of Externally-Supplied File

CWE-646

The product allows a file to be uploaded, but it relies on the file name or extension of the file to determine the appropriate behaviors.

This could be used by attackers to cause the file to be misclassified and processed in a dangerous fashion, causing the wrong action to occur.

We track 6 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 8.7.

How this weakness is prevented

  • Architecture and Design: Make decisions on the server side based on file content and not on file name or extension.

Latest Reliance on File Name or Extension of Externally-Supplied File vulnerabilities