Exploit database

Vulnerability

CVE-2016-10033

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code via a \" (backslash double quote) in a crafted Sender property.

CVE Program

Exploit source choices

15 sources
WordPress PHPMailer Host Header Command Injection
MSF-unix--webapp--wp_phpmailer_host_headerMetasploitLinux / remote

This module exploits a command injection vulnerability in WordPress version 4.6 with Exim as an MTA via a spoofed Host header to PHPMailer, a mail-sending library that is bundled with WordPress. A valid WordPress username is required to exploit the vulnerability. Additionally, due to the altered Host header, exploitation is limited to the default virtual host, assuming the header isn't mangled in transit. If the target is running Apache 2.2.32 or 2.4.24 and later, the server may have HttpProtocolOptions set to Strict, preventing a Host header containing parens from passing through, making exploitation unlikely.

2017-05-03wp_phpmailer_host_header.rb
PHPMailer Sendmail Argument Injection
MSF-multi--http--phpmailer_arg_injectionMetasploitPHP / remote

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.

2016-12-26phpmailer_arg_injection.rb
opsxcq/exploit-cve-2016-10033
GH-acc02bf475d53a248e0afdd1d6b3312fGitHubUnofficial GitHub source

PHPMailer < 5.2.18 Remote Code Execution exploit and vulnerable container

2016-12-2660 files · 409 stars
generaltesler/cve-2016-10033
GH-10cfbe34a1a1bff6cac9028bfabe21e6GitHubUnofficial GitHub source

RCE against WordPress 4.6; Python port of https://exploitbox.io/vuln/WordPress-Exploit-4-6-RCE-CODE-EXEC-CVE-2016-10033.html

2017-05-101 file · 9 stars
0x00-0x00/cve-2016-10033
GH-f08d4ee6b532a7a03a5c9f16bc92e3c5GitHubUnofficial GitHub source

PHPMailer < 5.2.18 Remote Code Execution Exploit

2018-02-091 file · 6 stars