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
cpanelCVE-2026-41940 — Proof-of-concept exploit for CVE-2026-41940, a critical cPanel & WHM authentication bypass via session-file CRLF injection, enabling automatic root login to WHM interface. | Kitploit
Tools/GitHubGitHub/bughunt4me/cpanelcve-2026-41940
Authentication & AuthorizationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed Teaming
GitHubbughunt4me/cpanelcve-2026-41940

cpanelCVE-2026-41940

Proof-of-concept exploit for CVE-2026-41940, a critical cPanel & WHM authentication bypass via session-file CRLF injection, enabling automatic root login to WHM interface.

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 Repository
12494 months agoNot yet reviewed

🔴 cPanelCVE

CVE-2026-41940 — cPanel & WHM Authentication Bypass

CVSS 10.0 (Critical) · Confirmed In‑The‑Wild · Auto Root Login

Python License Selenium


📖 Overview

cPanelCVE is a proof‑of‑concept exploit for CVE-2026-41940, a critical session‑file CRLF injection vulnerability in cPanel & WHM that allows complete root authentication bypass on WHM (Web Host Manager) port 2087.

Once the bypass is successful, the tool automatically opens your browser (Chrome or Firefox) and logs you directly into the WHM interface as root — no manual cookie setup, no password, no click‑throughs.

🧬 How It Works

The exploit runs in 4 stages:

After Stage 4, the tool either:

  • Opens Chrome/Firefox instantly, injects the session cookie via DevTools, and lands on the WHM dashboard (fully automatic).
  • Or prints ready‑to‑use JavaScript commands for manual login.

⚡ Quick Start

Prerequisites

  • Python 3.8+ (stdlib only for exploit core)
  • Selenium (for auto‑browser login):
    root@kitploit:~
    pip install selenium
    pip install -r requirements.txt
    

⚡ Usage

root@kitploit:~
# Auto‑login with Chrome (default)
python cpanelcve.py -u https://target.com:2087 --selenium

# Auto‑login with Firefox
python cpanelcve.py -u https://target.com:2087 --selenium --engine firefox

# Print manual browser console commands
python cpanelcve.py -u https://target.com:2087 --browser

Made with ❤️ by @mahanOFp

Download Tool
StageDescription
0 — Canonical DiscoveryRetrieves the real hostname via /openid_connect/cpanelid to prevent redirect loops.
1 — Preauth SessionPosts wrong credentials to /login/?login_only=1 to obtain a whostmgrsession cookie.
2 — CRLF InjectionSends a poisoned Authorization: Basic header that writes hasroot=1 directly into the session file.
3 — PropagateTriggers the do_token_denied internal gadget to flush the raw session into the live cache.
4 — VerifyAccesses /json-api/version — a 200 OK with version data confirms unrestricted root access.