Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2016-10033 — Threaded scanner and proof-of-concept exploit for CVE-2016-10033, the PHPMailer isMail Sender argument injection reachable via WordPress lost-password requests. | Kitploit
Tools/GitHubGitHub/jonathan1010/cve-2016-10033
ReconnaissanceVulnerability ScannersWeb Vulnerability ScannersExploitationWeb Application ExploitationPenetration Testing
GitHubjonathan1010/cve-2016-10033

CVE-2016-10033

Threaded scanner and proof-of-concept exploit for CVE-2016-10033, the PHPMailer isMail Sender argument injection reachable via WordPress lost-password requests.

View Repository
Dec 4, 2026Not yet reviewed
Share

CVE-2016-10033

PHPMailer < 5.2.18 (isMail transport) - additional-parameter injection in the mail() call via a crafted Sender

Metadata

fieldvalue
CVECVE-2016-10033
severitycritical
CVSS9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
fixed inPHPMailer 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)
classargument injection into the mail() additional parameters (CWE-88)
scanner version1.0.0
python3.8+ stdlib only, no third-party deps

Exploit

If you want the exploit, find it here: https://satoshidisk.com/pay/CT5TII

Summary

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.

Full 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.

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).

Detection model

  • Two requests, matching the template max-request: 2 and its raw pair:
    1. 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.
    2. 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>.
  • Word matcher on part: header: the header block of the second response must contain the literal string wp-login.php?checkemail=confirm.
  • Status matcher: the second response must be 302 (template unsafe: true, so the redirect is kept raw and not followed).
  • Vulnerable = word matcher AND status matcher, exactly like matchers-condition: and; the first response is only used for the extractor, never for the verdict.
  • Rows are streamed to the CSV as each worker finishes; the optional --json sidecar mirrors the same rows for tooling.

Usage

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.

Example scanner output

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

Scanner report columns

columnmeaning
n1-based row number
urltarget as provided (scheme auto-prepended if missing)
statusok | error
vulnerableTrue/False verdict from check()
elapsed_msper-target timing
token12-char md5 over the JSON details (exec-vs-reflection proof)
result_b64base64(JSON) full details (both requests, sender, username, status, header/body heads, one boolean per matcher, matched)

Files

  • 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.

Exit codes

codemeaning
0at least one target answered (scanner) / verification ok (exploit)
2every target errored (scanner) / verification failed (exploit)

References

  • Nuclei template: http/cves/2016/CVE-2016-10033.yaml (https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/cves/2016/CVE-2016-10033.yaml)
  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2016-10033
  • Exploit-DB: https://www.exploit-db.com/exploits/40970/ and https://www.exploit-db.com/exploits/40968/
  • FullDisclosure: http://seclists.org/fulldisclosure/2016/Dec/78
Download Tool

Related Tools

  • amass

    In-depth attack surface mapping and asset discovery

  • subfinder

    Fast passive subdomain enumeration tool.

  • reconftw

    reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    1.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    742
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    710
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    521
  • 5

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    441
  • 6

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    438

Explore all tools

Browse our collection of tools

View all tools →