CVE-2016-9492: PHP FormMail Generator - Unrestricted File Upload
- Cve: CVE-2016-9492
- Name: PHP FormMail Generator - Unrestricted File Upload
- Description: The code generated by PHP FormMail Generator prior to 17 December 2016 is vulnerable to 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. 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.
- Impact: Attackers can upload and execute arbitrary PHP code, leading to remote code execution and full server compromise.
- Remediation: Update to the latest version of PHP FormMail Generator that fixes the file upload filtering or implement server-side restrictions on uploaded file types.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: remote_code_execution, file_system_write
- Requirement type: user_interaction
- Requirements: Attacker needs to upload a malicious PHP file
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.03289
- Epss percentile: 0.88794
- Assignee: [email protected]
- Published at: 2018-07-13T20:29:01Z
- Age in days: 3056
- Modified at: 2026-06-17T00:56:09Z
- Patch available: yes
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2016-9492
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-434 | Unrestricted Upload of File with Dangerous Type |
References
| Url | Source | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/96718 | nvd | Third Party Advisory, VDB Entry |
| https://www.kb.cert.org/vuls/id/608591 | nvd | Third Party Advisory, US Government Resource |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| jqueryform:php_formmail_generator | < 2016-12-17 | no | nvd | /v1/products/jqueryform/php_formmail_generator |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts