CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2016-10045

The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code by leveraging improper interaction between the escapeshellarg function and internal escaping performed in the mail function in PHP. NOTE: this vulnerability exists because of an incorrect fix for CVE-2016-10033.
Publish Date : 2016-12-30 Last Update Date : 2017-09-02
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
7.5
Confidentiality Impact Partial (There is considerable informational disclosure.)
Integrity Impact Partial (Modification of some system files or information is possible, but the attacker does not have control over what can be modified, or the scope of what the attacker can affect is limited.)
Availability Impact Partial (There is reduced performance or interruptions in resource availability.)
Access Complexity Low (Specialized access conditions or extenuating circumstances do not exist. Very little knowledge or skill is required to exploit. )
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access None
Vulnerability Type(s) Execute Code
CWE ID 77

- Products Affected By CVE-2016-10045

# Product Type Vendor Product Version Update Edition Language
1 Application Phpmailer Project Phpmailer 5.2.19 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Phpmailer Project Phpmailer 1

- References For CVE-2016-10045

https://developer.joomla.org/security-centre/668-20161205-phpmailer-security-advisory.html CONFIRM
https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.20 CONFIRM
https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html
http://seclists.org/fulldisclosure/2016/Dec/81
FULLDISC 20161227 PHPMailer < 5.2.20 Remote Code Execution PoC 0day Exploit (CVE-2016-10045) (Bypass of the CVE-2016-1033 patch)
https://github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilities CONFIRM
https://www.exploit-db.com/exploits/40986/
EXPLOIT-DB 40986
https://www.exploit-db.com/exploits/42221/
EXPLOIT-DB 42221
http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html
http://www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection
http://openwall.com/lists/oss-security/2016/12/28/1
MLIST [oss-security] 20161228 Re: PHPMailer < 5.2.18 Remote Code Execution [updated advisory] [CVE-2016-10033]
http://www.securitytracker.com/id/1037533
SECTRACK 1037533
https://www.exploit-db.com/exploits/40969/
EXPLOIT-DB 40969
http://packetstormsecurity.com/files/140286/PHPMailer-Remote-Code-Execution.html
http://www.securityfocus.com/bid/95130
BID 95130 PHPMailer CVE-2016-10045 Incomplete Fix Remote Code Execution Vulnerability Release Date:2017-07-18
http://www.securityfocus.com/archive/1/archive/1/539967/100/0/threaded
BUGTRAQ 20161228 PHPMailer < 5.2.20 Remote Code Execution PoC 0day Exploit (CVE-2016-10045) (Bypass of the CVE-2016-1033 patch)

- Metasploit Modules Related To CVE-2016-10045

PHPMailer Sendmail Argument Injection
PHPMailer versions up to and including 5.2.19 are affected by a vulnerability which can be leveraged by an attacker to write a file with partially controlled contents to an arbitrary location through injection of arguments that are passed to the sendmail binary. This module writes a payload to the web root of the webserver before then executing it with an HTTP request. The user running PHPMailer must have write access to the specified WEB_ROOT directory and successful exploitation can take a few minutes.
Module type : exploit Rank : manual Platforms : PHP


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.