Php · Php Formmail Generator · CVE-2016-9492
**Name of the Vulnerable Software and Affected Versions**
PHP FormMail Generator versions prior to 17 December 2016
**Description**
The issue concerns the unrestricted upload of dangerous file types. In the generated form.lib.php file, upload file types are checked against a hard-coded list of dangerous extensions. However, this list does not include all variations of PHP files, which may lead to execution of the contained PHP code if the attacker can guess the uploaded filename. The form by default appends a short random string to the end of the filename.
**Recommendations**
For versions prior to 17 December 2016, consider updating the form.lib.php file to include all variations of PHP files in the list of dangerous extensions to prevent the upload of malicious PHP files. As a temporary workaround, consider restricting the upload of files with PHP extensions or disabling the file upload feature until a proper fix is applied.