Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2026-41940: Authentication Bypass in cPanel & WHM and WP Squared

Published Apr 29, 2026 · Updated 4 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days19 mentions · peak 4 in a dayToday
CVSS9.3Critical · v4
EPSS98.5%100th percentile
CISA KEVYesAdded Apr 30, 2026
In the wildActivePer CISA KEV
Vendor
Cpanel
IdentifiersCVE-2026-41940CWE-287

CVE-2026-41940 is a remote authentication-bypass vulnerability affecting the login flow of cPanel & WHM and WP Squared. The flaw allows unauthenticated attackers to access administrative interfaces without valid credentials. The affected login functionality is associated with the two-factor authentication module, although the precise vulnerable function and request-validation failure are not established. Affected cPanel & WHM releases are described as versions after 11.40, subject to vendor security fixes. Successful exploitation can expose hosted accounts and permit root-level administrative control through WHM.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can result in complete server compromise through unauthorized WHM administrative access. Attackers can access hosted cPanel accounts and associated websites, email, and databases; modify SSL/TLS certificates, DNS configurations, and server security settings; and perform malicious administrative actions. Shared-hosting deployments face cross-tenant exposure and potential lateral movement into hosted services.

Mitigation

If you can’t patch tonight, do this now.

Restrict management-interface access to trusted administrative networks and remove unnecessary public exposure while updates are deployed. Monitor for repeated malformed requests, unusual pre-authentication connections, abnormal session-related log events, and administrative access without valid credentials. Review unexpected account and configuration changes. These measures do not replace the vendor security updates.

Remediation

Patch, then assume compromise.

Apply the vendor security updates for affected cPanel & WHM and WP Squared installations immediately. Build 11.102.0.3 is identified as a minimum fixed cPanel & WHM build, but fixed versions should be verified against the vendor bulletin for each release branch and product. Investigate suspected prior exploitation and remediate unauthorized access separately from patch installation.

Public exploits

Exploits

52 exploits validated by Mallory's analysis. Hidden: 46 rejected by Mallory's analysis as not a working exploit; 5 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.

View more in app →
cPanel-WHM-AuthBypass-Session-CheckerThis repository is a small, focused companion tool for CVE-2026-41940 targeting cPanel/WHM. It contains only two files: a README describing the purpose and attribution, and a single Python script, check_session.py, which is the operational entry point. The script is not a standalone initial exploit for the full bug chain; instead, it automates validation and follow-on actions after the session injection/auth bypass technique has been attempted. The Python code uses requests with TLS verification disabled and performs a staged workflow: (1) parse the target URL and discover the canonical hostname via /openid_connect/cpanelid, (2) mint a pre-auth whostmgrsession cookie by POSTing invalid credentials to /login/?login_only=1, (3) send a crafted Basic Authorization header containing a base64-encoded CRLF injection payload while reusing the session cookie, (4) extract a leaked /cpsess########## token from the redirect Location header, (5) hit additional endpoints such as /scripts2/listaccts to propagate or validate the session, and (6) test multiple authenticated WHM endpoints to determine whether the injected session truly grants access or whether the target is patched and returns denial responses. Main exploit capabilities: it can validate authenticated access across WHM HTML and JSON API endpoints, distinguish partial session injection from full auth bypass, print a browser-usable authenticated URL and cookie, probe WHM Terminal availability, and optionally attempt a root password change through /json-api/passwd?api.version=1. The hardcoded payload and direct API usage make it more than a pure PoC but less flexible than a framework module, so OPERATIONAL is the best fit. Fingerprintable targets/endpoints are all WHM web paths on the supplied target host, typically over HTTPS on port 2087. Notable paths include /openid_connect/cpanelid, /login/?login_only=1, /scripts2/listaccts, /json-api/version, /json-api/applist?api.version=1, /scripts2/terminal, /cgi/config, /cgi/terminal, /terminal, and /json-api/passwd?api.version=1. The script also relies on the whostmgrsession cookie and a leaked /cpsess########## token as core artifacts. Overall, the repository’s purpose is to operationalize post-exploitation validation for the watchTowr-described cPanel/WHM authentication bypass: confirming whether a target is fully compromised, identifying accessible privileged interfaces, and enabling immediate follow-on actions such as terminal access checks or password changes.debugactiveprocess · Disclosed Apr 29, 2026 · python · markdown · web · networkOperationalcve-2026-41940-pocSingle-file Python exploit targeting CVE-2026-41940 against cPanel/WHM. The script uses the requests library with TLS verification disabled and implements a four-stage authentication bypass chain. First, it sends a POST to /login/?login_only=1 with invalid root credentials to mint a pre-auth whostmgrsession cookie. It then extracts the raw Set-Cookie value, strips a trailing component from the cookie, and reuses that base value. Next, it sends a GET / request with a crafted Basic Authorization header containing a base64-encoded CRLF injection payload that forges internal authentication variables such as user=root, tfa_verified=1, and hasroot=1. The resulting redirect is parsed for a leaked /cpsess########## token. The exploit then calls /scripts2/listaccts to trigger token propagation and finally verifies privileged access via {token}/json-api/version. If successful, it invokes the WHM JSON API passwd function to change the root password. The repository contains only exploit.py, making it a focused operational exploit rather than a framework module or detector. Main capability: unauthenticated remote auth bypass leading to root-level administrative control of WHM and password reset of the root account.adriyansyah-mf · Disclosed Apr 30, 2026 · python · web · networkOperationalcPanelWHM-AuthBypassThis repository is a compact Go-based scanner/exploit tool for CVE-2026-41940 affecting cPanel/WHM. It contains one primary code file (`main.go`), a Go module file, and documentation (`README.md`, `CHANGELOG.md`). The tool is not just a detector: it implements an end-to-end exploitation workflow. Core exploit logic follows a documented 4-stage chain: (1) request `/login/?login_only=1` with bad credentials to mint a pre-auth `whostmgrsession`; (2) send a crafted `Authorization: Basic` header containing CRLF-injection data together with the session cookie to `/`, causing a redirect that leaks a `/cpsess##########` token; (3) trigger token propagation via the `do_token_denied` mechanism; and (4) verify elevated access against `/json-api/version`. The code also performs canonical hostname discovery using `/openid_connect/cpanelid` and sets a custom Host header accordingly. Operational capabilities go beyond scanning. In single-target mode, the tool can change the root password, call arbitrary WHM API functions with attacker-supplied parameters, generate a root one-click login session URL, and perform RCE. The RCE path is especially notable: it creates a temporary cPanel account (`createacct`), uses UAPI `Fileman::save_file_content` to place a PHP shell under `public_html`, executes an attacker command by requesting the shell over HTTP(S), parses output, and then removes the account (`removeacct`) unless `-keep` is specified. If kept, the tool exposes credentials and a cPanel login URL on port 2083. Repository structure is simple and purpose-built: `main.go` is the entry point and contains HTTP client setup, target parsing/normalization, concurrent batch scanning, result-file writing, and exploitation routines; `README.md` documents CLI flags and attack flow; `CHANGELOG.md` shows rapid feature additions including session URL generation and RCE. Overall, this is an operational exploit utility for authenticated-bypass-to-root compromise of vulnerable cPanel/WHM servers, with both mass-scanning and post-exploitation support.Kagantua · Disclosed Apr 30, 2026 · go · web · networkOperationalCVE-2026-41940Repository contains two working exploit implementations for CVE-2026-41940 against cPanel/WHM: a Python exploit with post-auth actions and a Go concurrent scanner/detector. Structure: top-level README naming the CVE; cpanel-exploit-go/ with go.mod, README, and main.go; and watchTowr-vs-cPanel-WHM-AuthBypass-to-RCE.py/ with README and the main Python exploit script. The Python script is the primary exploit. It performs a four-stage attack chain: (1) POST to /login/?login_only=1 with invalid credentials to mint a pre-auth whostmgrsession cookie; (2) send a GET / request with a crafted Basic Authorization header containing a base64-encoded CRLF payload that forges internal auth state for root, while reusing the stripped session cookie; (3) request /scripts2/listaccts to trigger token-denied handling and propagate the manipulated raw session into cache; and (4) verify privileged access by calling <token>/json-api/version, where <token> is the leaked /cpsess########## path extracted from a redirect Location header. After successful bypass, the script can call WHM JSON APIs to change the root password (passwd), execute arbitrary commands (system), or provide an interactive command loop. If no action flags are supplied, it prints the session cookie and cpsess path needed for manual browser login to WHM as root. The Go implementation mirrors the exploitation logic but is oriented toward high-concurrency bulk scanning. It reads targets from the first column of a tab-configured CSV-like input, auto-prefixes missing schemes, disables TLS verification, avoids redirects, and processes targets with configurable thread count and timeout. Successful targets are written to success.txt and success.csv. The visible Go code also includes a root-password change helper, indicating partial post-exploitation support, but the README positions it mainly as a scanner whose successful outputs can be fed into the Python tool for deeper exploitation. Notable operational characteristics: both implementations disable TLS certificate verification; both rely on spoofed Host headers and manual cookie handling; both target WHM on port 2087 by default; and both are clearly exploit code rather than mere detection, because they provide authenticated post-bypass actions including password reset and command execution as root.Wesuiliye · Disclosed Apr 30, 2026 · go · python · web · networkOperationalCVE-2026-41940-Exploit-PoCThis repository is a small, focused Python proof-of-concept exploit for CVE-2026-41940 targeting cPanel WHM authentication bypass. It contains two files: a README with operator instructions and one executable script, exploit.py. The script is the sole entry point and implements a multi-stage web exploit over HTTPS. Exploit flow: (1) parse the supplied target URL and default to port 2087, (2) probe /openid_connect/cpanelid to determine the canonical hostname from a redirect, (3) POST to /login/?login_only=1 with invalid credentials to obtain a pre-auth whostmgrsession cookie, (4) send a GET / request with a crafted Basic Authorization header containing a CRLF-style injected payload and the session cookie, (5) extract a leaked /cpsess########## token from the Location header, (6) touch /scripts2/listaccts to propagate/cache the session, (7) query {token}/json-api/listaccts?api.version=1 to retrieve account information, and (8) repeatedly call {token}/json-api/version every 3 seconds to keep the session alive for manual browser/Burp replay. The exploit’s main capability is authentication bypass leading to unauthorized administrative API access. It does not deliver code execution itself, but it provides a usable authenticated WHM session context and demonstrates sensitive information disclosure by listing hosted accounts. The README explicitly instructs the operator to capture the generated whostmgrsession value and replay requests in Burp Suite, indicating the practical goal is session hijacking and authenticated access rather than a standalone post-exploitation payload. No external C2, hardcoded IPs, or third-party callback infrastructure are present. All network activity is directed at operator-supplied target WHM endpoints. SSL verification is disabled, redirects are mostly not followed automatically, and the script uses a realistic browser User-Agent to blend in with normal traffic.realawaisakbar · Disclosed Apr 30, 2026 · python · markdown · web · networkOperationalCVE-2026-41940-MASS-EXPLOITThis repository contains a single Python exploit script, main.py, targeting CVE-2026-41940 in cPanel/WHM. It is a real exploit rather than a simple detector: it automates a multi-stage authentication bypass based on CRLF injection into a Basic Authorization header, then leverages the resulting forged session to access privileged WHM functionality as root. Repository structure is minimal: one standalone Python file using requests, urllib3, argparse, threading, and concurrent.futures. The script supports both single-target and bulk-target operation, accepts either a single target or a targets file, uses multithreading for scale, and can save structured JSON results. It also includes banner output and status aggregation for vulnerable, exploited, patched, and error states. Core exploit flow: 1. Parse targets, defaulting bare hosts/IPs to HTTPS on port 2087. 2. Optionally discover the canonical host by requesting /openid_connect/cpanelid and reading the redirect Location header. 3. Send a failed POST to /login/?login_only=1 with user=root and an invalid password to obtain a pre-auth whostmgrsession cookie. 4. Reuse that cookie while sending a crafted Authorization: Basic header whose decoded content contains CRLF-separated fields such as successful_internal_auth_with_timestamp, user=root, tfa_verified=1, and hasroot=1. This is intended to corrupt or forge server-side auth state. 5. Extract a /cpsess########## token from the redirect Location header. 6. Probe privileged endpoints such as /scripts2/listaccts and /cpsess.../json-api/version to confirm elevated access. 7. In exploit mode, the script proceeds beyond verification to perform a privileged post-auth action; based on the visible code and CLI logic, that action is changing the root password when a password argument is supplied. The exploit is operational rather than merely proof-of-concept because it includes end-to-end automation, session handling, verification logic, concurrency, and a practical post-exploitation action. No external C2 or third-party infrastructure is embedded; all network activity is directed at the supplied target WHM service. Fingerprintable artifacts are primarily WHM HTTPS endpoints, the whostmgrsession cookie name, and the /cpsess########## token pattern.ilmndwntr · Disclosed Apr 30, 2026 · python · web · networkOperationalCPANEL-CVE-2026-41940Repository contains a single Python proof-of-concept exploit (poc.py) plus a README describing CVE-2026-41940. The exploit targets cPanel/WHM authentication handling in cpsrvd and automates a four-stage unauthenticated auth bypass chain. First, it sends a POST to /login/?login_only=1 with invalid credentials to obtain a pre-auth whostmgrsession cookie. It then strips the ',<obHEX>' suffix from that cookie to disable the per-session encoder. Next, it sends a GET / request with a crafted Basic Authorization header whose base64-decoded contents contain CRLF-separated session fields such as successful_internal_auth_with_timestamp=9999999999, user=root, tfa_verified=1, and hasroot=1. If successful, the server redirects to a /cpsess########## path, leaking a WHM security token. The script then requests /scripts2/listaccts without a cp_security_token prefix to trigger token-denied handling and force session cache propagation. Finally, it verifies root-level access by calling <token>/json-api/version with the forged session cookie. The code is operational rather than a simple detector: it performs the full exploitation workflow and yields an authenticated WHM session, but it does not deploy a post-exploitation shell or arbitrary command execution payload itself. The README claims the end result can lead to root shell access in the broader vulnerability chain, but the included code stops at authenticated root-equivalent WHM access verification. Structurally, the repository is minimal: README.md documents affected versions, exploitation logic, prerequisites, and usage; poc.py implements argument parsing, canonical hostname discovery, HTTP session handling, staged exploitation, and result display.0xabdoulaye · Disclosed Apr 30, 2026 · python · markdown · web · networkOperationalCVE-2026-41940-POCThis repository is a small, focused exploit PoC consisting of one Python script and a README. The main file, CVE-2026-41940.py, implements a 4-step authentication bypass against vulnerable cPanel/WHM systems. First, it sends a POST request to /login/?login_only=1 with invalid root credentials to obtain a pre-auth session cookie (whostmgrsession or cpsession). Second, it sends a GET request with a crafted Basic Authorization header containing a base64-encoded CRLF payload designed to inject attacker-controlled key/value pairs into the server-side session file. The injected fields attempt to mark the session as root-authenticated, set hasroot=1 and tfa_verified=1, and assign a chosen cp_security_token path. Third, it requests /cpsess9999999999/scripts2/listaccts to trigger session regeneration so the poisoned values are written back and preserved. Fourth, it verifies success by requesting /cpsess9999999999/json-api/version?api.version=1 and checking for HTTP 200 plus a JSON version field. The exploit is operational rather than a mere detector: it performs the full attack chain and, on success, yields an authenticated root WHM session and a usable admin API URL. It retries up to five times because the author notes that randomized hash iteration or session rewriting may overwrite injected values. The code uses argparse for CLI handling, requests for HTTP interactions, disables TLS verification warnings, and supports optional SSL, custom port selection, and verbose output. No external C2, hardcoded remote IPs, or secondary payload delivery are present; the exploit's purpose is direct privilege/authentication bypass against the target web management interface.zedxod · Disclosed Apr 30, 2026 · python · markdown · web · networkOperationalCVE-2026-41940_exploitThis repository is a small standalone exploit repo with 2 files: a single Python exploit script (CVE-2026-41940_exploit.py) and a README that mirrors the vulnerability explanation and attack chain. It is not part of a larger exploitation framework. The Python script is the clear entry point and uses requests/urllib3 to interact with a remote cPanel/WHM target over HTTP(S). The exploit targets CVE-2026-41940, described as an authentication bypass in cPanel & WHM’s cpsrvd service caused by CRLF injection into HTTP Basic authentication data that is later reparsed from a raw session file. The script’s core capability is to build a malicious Basic-auth credential where the password contains CRLF-separated session fields. Those injected fields set values such as user=root, hasroot=1, tfa_verified=1, a chosen cp_security_token, and a recent successful_internal_auth_with_timestamp. The exploit then drives the documented 4-step chain: mint a pre-auth session via POST /login/?login_only=1, send a GET / request with the crafted Authorization header to poison the session file, trigger reparsing through a token-denied request to /cpsess<TOKEN>/scripts2/listaccts, and finally access /cpsess<TOKEN>/json-api/version to confirm authenticated privileged access. Operationally, the script supports multiple actions after exploitation: check (verify vulnerability/auth bypass), passwd (change the root password), listaccts (enumerate cPanel accounts), info (retrieve server information), and shell (display session details for manual follow-on use). The README and script both note a race condition due to randomized hash iteration order affecting whether the injected cp_security_token survives; the script compensates with configurable retries. Overall, this is a real, weaponized-enough standalone exploit PoC with a hardcoded but effective payload for privilege-bearing session forgery against vulnerable cPanel/WHM instances.george1-adel · Disclosed May 1, 2026 · python · markdown · web · networkOperationalCVE-2026-41940This repository is a small standalone Python exploit/scanner for CVE-2026-41940 targeting cPanel/WHM authentication bypass. It contains one primary code file (CVE-2026-41940.py), a README, and a requirements file. The Python script is the clear entry point and implements a full workflow: target parsing, service probing, canonical hostname discovery via /openid_connect/cpanelid redirects, HTTP(S) requests with a spoofed Host header, multi-threaded scanning, and an interactive post-exploitation WHM shell mode. The exploit is not just a detector. The embedded base64 payload represents forged authentication/session state for the root user, including flags such as successful_internal_auth_with_timestamp, tfa_verified=1, and hasroot=1. This indicates the script attempts to bypass authentication and establish privileged access rather than merely fingerprinting exposure. The interactive shell mode and prompts for session base / security token further suggest the tool can leverage a successful bypass into authenticated WHM actions. Repository structure is minimal and purpose-built: - CVE-2026-41940.py: main exploit/scanner with CLI and menu-driven interactive interface. - README.md: describes the tool as a research scanner, but the code contains exploit functionality. - requirements.txt: requests, colorama, urllib3. Notable capabilities visible from the code and strings provided: - Accepts single targets or lists of targets. - Supports verbose and multi-threaded scanning. - Normalizes raw IP:port or URL input. - Probes standard cPanel/WHM ports: 2087, 2086, 2083, 2082. - Uses /openid_connect/cpanelid to infer canonical hostname from redirects. - Sends requests directly to IP while spoofing the Host header to the canonical hostname. - Includes an interactive WHM shell mode for manual follow-on actions after obtaining session details. Overall, this is an operational standalone exploit tool for network-accessible cPanel/WHM targets, combining reconnaissance, vulnerability validation, authentication bypass logic, and post-bypass operator interaction.senyx122 · Disclosed May 1, 2026 · python · network · webOperationalcPanel-CVE-2026-41940-ScannerThis repository is a Python-based cPanel/WHM mass scanner and exploit toolkit for the claimed CVE-2026-41940 authentication bypass/CRLF injection issue. It is not just a detector: the included PoC logic performs the full multi-stage exploit chain needed to obtain privileged WHM session context, while the scanner components automate target acquisition and bulk testing. Repository structure: - README.md: describes the tool as a Shodan-powered scanner/exploit for cPanel & WHM. - config.json: stores operator settings such as Shodan API key, thread count, timeout, country filter, page range, and ports. - cpanel.py: standalone exploit PoC adapted from watchTowr research. This is the clearest single-file exploit implementation. - main.py: larger orchestrator for bulk discovery and scanning, using SQLite queues and multithreading. The provided content is truncated, but enough is visible to confirm Shodan integration, queueing, and threaded execution. - scanner.py: simpler bulk scanner/exploit verifier that fetches Shodan targets and runs the same 4-stage exploit flow concurrently. - requirements.txt: Python dependencies. Exploit flow implemented in cpanel.py and scanner.py: 1. Discover canonical hostname by requesting /openid_connect/cpanelid and parsing the redirect Location header. 2. Send POST to /login/?login_only=1 with invalid root credentials to obtain a pre-auth whostmgrsession cookie. 3. Strip the cookie suffix and resend it with a crafted Basic Authorization header containing base64-encoded CRLF-separated forged auth fields. 4. Parse the redirect Location header for a leaked /cpsess########## token. 5. Trigger /scripts2/listaccts to propagate/cache the injected state. 6. Verify privileged access by requesting {token}/json-api/version. 7. If successful, log the target as vulnerable; the standalone PoC also includes a helper for /json-api/passwd to change the root password, though it is commented out. Capabilities: - Internet-scale target discovery via Shodan API. - Filtering by port, country, and page range. - Multithreaded scanning with persistence via SQLite. - Automated auth bypass/token leak workflow against cPanel/WHM. - Verification of root-level WHM API access. - Logging of successful targets and leaked tokens. - Potential post-exploitation action through WHM API password change helper. Overall, this is an operational exploit/scanner repository aimed at remote network/web exploitation of exposed cPanel/WHM services, with both a direct PoC and bulk-scanning automation.merdw · Disclosed May 1, 2026 · python · json · network · webOperationalCVE-2026-41940The repository contains one standalone Python exploit script (7,644 listed bytes) and a README (2,862 listed bytes). It is not associated with an exploit framework. The script uses requests and urllib3, with argparse handling a target URL, a required new password, and an optional hostname override. Execution occurs directly at module level. The attack sequence discovers the target's canonical hostname, obtains a preauthentication cookie through a deliberately failed root login, strips the cookie's comma-delimited suffix, and submits a hardcoded Basic-auth payload containing CRLF-separated privileged session attributes. It then extracts a /cpsess token from a redirect, requests /scripts2/listaccts to trigger the claimed session-cache propagation behavior, checks the version API, and attempts a root password change through the passwd API. This is an active exploitation and credential-modification tool, not merely a vulnerability detector. The supplied files label the issue CVE-2026-41940, but do not establish the CVE's validity, an affected-version range, or demonstrated exploitation. The README's version 11.110.0.12 appears only in illustrative output and is not sufficient to identify an affected release. There is no obvious unrelated destructive operation or exfiltration destination in the code. The GitHub URL is attribution rather than an endpoint contacted during execution. Important limitations include heuristic authentication checks, no application-level validation of the password-change result, no implemented shell payload, and disabled TLS certificate validation. The final success message therefore does not prove that root's password changed. The repository reference and archive size were not provided; ref is left empty and size_bytes is 0 to represent unavailable metadata, rather than the sum of the listed file sizes.ryhnmhrdka · Disclosed May 1, 2026 · python · network · webOperationalCVE-2026-41940This repository is a small standalone Python exploit/scanner project consisting of a README, one main script (cpanel-mass-checker.py), and a requirements file. The Python script is the sole code entry point and implements both vulnerability checking and active exploitation logic for the claimed cPanel/WHM authentication bypass CVE-2026-41940. Structurally, the script provides: target parsing and canonical host discovery; a four-stage exploitation workflow; single-target actions; and concurrent batch scanning. The visible stages are: (1) POST to /login/?login_only=1 with invalid root credentials to obtain a whostmgrsession cookie, (2) GET / with a crafted Basic Authorization header carrying a CRLF-style injected payload plus the session cookie to recover a /cpsess########## token from a redirect, (3) GET /scripts2/listaccts to trigger token propagation / denial handling, and (4) verification of privileged access, described in the README as using /json-api/version. The script disables TLS verification and supports manual Host header override, indicating it is designed to work against deployments where hostname routing matters. Capabilities go beyond detection. According to the code and README, the tool supports single-target scanning, batch scanning with thread concurrency, optional scanning across ports 2082/2083/2086/2087, generation of a reusable WHM session URL, WHM API invocation, root password change, and command execution (RCE) once the authenticated context is established. Output can be saved to a results file. The embedded base64 payload is central to the exploit and appears intended to inject authentication-related fields into the Authorization header processing path. Overall, this is an operational exploit utility rather than a simple detector: it automates target discovery, exploitation, session establishment, and post-exploitation actions against vulnerable cPanel/WHM instances over the network.Lutfifakee-Project · Disclosed May 1, 2026 · python · markdown · network · webOperationalcve-2026-41940-toolThis repository is a small standalone Python exploit utility consisting of one main script, cve_2026_41940_tool.py, plus a README. It is not part of a larger exploitation framework. The script targets CVE-2026-41940, described here as an authentication bypass affecting cPanel & WHM and WP Squared. Its core logic builds a hardcoded Basic Authorization header from the credential pair cpanel:forbidden and uses that header to probe WHM JSON API endpoints for unauthorized access. The repository structure is simple: the README documents installation, usage, target formats, supported ports, and claimed exploit workflow; the Python script implements an interactive CLI with three major functions: printing Google dorks, scanning targets, and exploiting vulnerable WHM instances. The script defines common cPanel-family ports (2082, 2083, 2086, 2087, 2095, 2096), expands bare hosts into multiple URLs, and uses requests with SSL verification disabled and a fixed timeout. Detection is implemented in check_vulnerable(), which sends GET requests to /json-api/listaccts?api.version=1 and /json-api/version?api.version=1 with the crafted Authorization header. A 200 response containing account or version data is treated as vulnerable; redirects to login or 401/403 responses are treated as not vulnerable. Based on the available code and README, the exploit’s main capabilities are: bulk and single-target scanning, multi-port target expansion, multithreaded probing, report export, and interactive RCE against WHM ports only. The README claims two post-bypass execution methods: direct WHM API command execution and a fallback temporary PHP web shell upload/delete path. The visible code confirms the detection and menu-driven exploitation flow, and references an exploit_target() routine, but the provided content is truncated before the full implementation of that function. Even so, the repository clearly intends to move beyond detection into command execution, so it should be classified as an exploit rather than only a detector. Fingerprintable observables include the WHM API paths /json-api/listaccts and /json-api/version, the fixed Authorization header value Basic Y3BhbmVsOmZvcmJpZGRlbg==, the common service ports 2082/2083/2086/2087/2095/2096, and the cPanel advisory URL. Overall, this is an operational standalone exploit/utility for network-based web administration targets, focused on authentication bypass validation and subsequent WHM-based command execution.NULL200OK · Disclosed May 1, 2026 · python · markdown · network · webOperationalcPanelSniperRepository contains a single substantial Python exploit script, cPanelSniper.py, plus a README. It is a standalone Python 3 stdlib-only exploitation tool targeting CVE-2026-41940 in cPanel & WHM. The exploit is not tied to a common offensive framework. Its purpose is to automate a 4-stage authentication bypass chain against WHM: discover the canonical hostname, obtain a pre-auth whostmgrsession cookie, inject CRLF-delimited fields into the server-side session file through a crafted Authorization: Basic header, trigger propagation using /scripts2/listaccts, and verify root-level WHM access through a /cpsess.../json-api/version request. The embedded payload is designed to set session attributes such as user=root, tfa_verified=1, and hasroot=1. Based on the README and script header/comments, the tool supports both single-target and bulk scanning, multithreading, stdin/file-fed target lists, JSON result export, and optional post-exploitation actions. Those actions include changing the root password, executing arbitrary commands via a WHM API endpoint, creating a new WHM/cPanel account, and listing existing accounts. The repository structure is simple: README.md documents the vulnerability, affected versions, exploit stages, and usage examples; cPanelSniper.py implements the scanner/exploit logic, CLI parsing, concurrency, logging, and output handling. Overall, this is an operational exploit tool with real exploitation capability rather than a mere detector or proof-of-concept.ynsmroztas · Disclosed May 1, 2026 · python · markdown · web · networkOperationalCVE-2026-41940The repository contains a README and one 36,963-byte Python 3 executable, exploit.py (42,789 bytes total). It is a standalone, threaded single- and multi-target network exploit rather than a known exploit-framework module. The script claims to exploit CVE-2026-41940 against cPanel/WHM by first requesting a public login endpoint to obtain a whostmgrsession cookie, then placing a Base64-encoded CRLF session-record injection in a Basic Authentication header. It attempts to extract a cpsess token from a redirect, trigger session propagation via the token-denied flow, and confirm privileged access through the WHM version API. It supports check-only bulk scanning from a target file, configurable retries/timeouts/host override/cookie name, concurrent execution, JSON result output, and interactive post-exploitation. Documented privileged capabilities are server/account/DNS/privilege dumping, arbitrary WHM API calls, root password modification, hosting-account creation, command execution, creation of a root one-click login URL, and Bash reverse-shell delivery. The supplied content is internally consistent with an exploit and contains a concrete forged-session payload; however, the analysis cannot independently validate the claimed CVE or target-side vulnerability.0xYuR1 · Disclosed May 1, 2026 · python · markdown · network · webOperationalCVE-2026-41940Repository contains a single Python exploit script and a README. The script is a standalone operational PoC for CVE-2026-41940 targeting cPanel/WHM authentication bypass. Its documented flow is: obtain a pre-auth session cookie from login endpoints, send a crafted Basic-auth header containing a Base64 CRLF injection payload that forges root session fields in the cpsrvd session cache, recover the leaked cpsess token from a redirect, trigger session propagation via token-denied handling, and verify root-level WHM access through JSON API requests. The code includes networking helpers, retry logic, target parsing, canonical hostname discovery through /openid_connect/cpanelid, and post-exploitation routines. Based on the README and visible code paths, supported operator actions include interactive WHM API shell access, arbitrary WHM API calls, OS command execution, root password change, server/account information dumping, cPanel account creation, reverse shell triggering, and saving session details to JSON. The exploit is not merely a detector; it is intended to achieve unauthorized authenticated access and then leverage WHM administrative capabilities.Christian93111 · Disclosed May 1, 2026 · markdown · python · web · networkOperationalCVE-2026-41940-cPanel-Auth-Bypass-ExploitThis repository is a small standalone exploit repo with two files: a README describing the vulnerability and exploitation logic, and a single Python exploit script, cve_2026_41940.py, which is the operational entry point. It is not part of a larger exploit framework. The exploit targets CVE-2026-41940 in cPanel/WHM. The README explains a session-handling flaw in Cpanel/Session.pm: newline injection into the pass field combined with a conditional encoding bypass when the session cookie lacks its 'ob' component. The intended attack flow is: create a pre-auth session via /login/?login_only=1, strip the cookie suffix, inject newline-delimited session keys such as tfa_verified=1, hasroot=1, and successful_internal_auth_with_timestamp, then trigger a session-modification path so the raw session file is re-read and promoted into the JSON cache. Once the forged session is active, the attacker can access protected WHM/cPanel endpoints. The Python script implements this as an HTTPS network/web exploit. It initializes a requests session with retries, disabled TLS verification, optional proxy support, and browser-like headers. It chooses the target cookie name based on port: whostmgrsession for WHM ports 2086/2087 and cpanelsession for cPanel ports 2082/2083. It performs behavioral fingerprinting by requesting /login/ and probing /login/?login_only=1 with multiline input to distinguish cPanel behavior and infer patching or rejection behavior. It then attempts to acquire a session and inject forged state. Although the provided content is truncated in the middle of acquire_and_inject and capability discovery, the visible code and README clearly show the exploit’s purpose and post-exploitation flow. A notable capability is post-auth command execution. The shell() method provides an interactive operator loop and uses one of two authenticated endpoints depending on discovered capability: GET <security_token>/json-api/execute_shell_command with a command parameter, or POST <security_token>/scripts2/do_terminal_command with command data. This indicates the exploit is more than a detector or login bypass PoC; it aims to convert the session forgery into practical remote command execution through legitimate WHM/cPanel administrative functionality. Overall, this is an operational standalone Python exploit for unauthenticated authentication bypass against cPanel/WHM, with session forgery, privilege escalation within the application context, capability discovery, and interactive command execution against the compromised target.kmaruthisrikar · Disclosed May 1, 2026 · markdown · python · web · networkOperationalCVE-2026-41940This repository contains a standalone Python 2.7 mass-exploitation script for CVE-2026-41940 targeting WHM/cPanel. The repo is small and simple: one main exploit script (CVE-2026-41940.py), one README describing usage and attack stages, and a requirements.txt listing requests/urllib3/futures dependencies. The exploit is a real offensive script rather than a detector. Its workflow is multi-stage and network-based: it normalizes targets, parses host/port/scheme, checks TCP reachability on port 2087, optionally discovers a canonical hostname using /openid_connect/cpanelid, creates a requests session with TLS verification disabled, then performs a pre-authentication request to /login/?login_only=1 to obtain a whostmgrsession cookie. It next sends a crafted GET / request with a malicious Basic Authorization header containing a CRLF-style injected payload and the session cookie, attempting to leak a /cpsess########## token from the Location header. It then calls /scripts2/listaccts to propagate the session state, verifies privileged access through /json-api/version, and finally invokes the password-change API (/json-api/passwd) to set the root password to the hardcoded value Jenderal92. Operationally, the script supports bulk targeting from a file, concurrent exploitation with ThreadPoolExecutor, optional hostname override, and configurable timeout. Successful compromises are logged to res.txt in domain:port|root|Jenderal92 format. The hardcoded credential change and result logging make this more than a proof of concept; however, payload customization appears limited, so OPERATIONAL is the best fit rather than WEAPONIZED. Notable indicators and behaviors include use of the WHM-specific cookie name whostmgrsession, extraction of /cpsess tokens from redirects, access to WHM JSON API endpoints, disabled certificate validation, and targeting of TCP 2087 by default. The README aligns with the code and documents the same four-stage exploitation flow and password-change outcome.Jenderal92 · Disclosed May 1, 2026 · python · markdown · network · webOperationalCVE-2026-41940This repository is a small standalone Python exploit PoC for CVE-2026-41940, containing one executable script (CVE-2026-41940.py) and a README. It is not tied to a major exploit framework. The Python script is the clear entry point and implements a network/web attack against exposed cPanel/WHM management interfaces, primarily expected on HTTPS port 2087. Exploit flow: the script normalizes the supplied target URL, creates a requests session, and first POSTs to /login/?login_only=1 with bogus root credentials to obtain a whostmgrsession cookie. If the cookie is present, it then sends a crafted Authorization header labeled as Basic auth but containing base64-encoded CRLF-separated values intended to set authentication-related flags such as hasroot=1, tfa_verified=1, cp_security_token=1, and successful_internal_auth_with_timestamp=1. It performs a GET / with that header and cookie, then verifies success by requesting /json-api/version. A 200 response containing "version" is treated as successful root WHM authentication bypass. Main capability: unauthenticated remote administrative access to WHM/root context. The script itself does not include a reverse shell, command execution primitive, or persistence payload, but the README explicitly frames successful exploitation as enabling follow-on actions such as planting an SSH key or creating a backdoor. Because it contains a working exploitation sequence and hardcoded auth-bypass header rather than a customizable payload framework, the maturity is best classified as OPERATIONAL. Repository structure is minimal: one Python exploit file plus documentation. The README provides vulnerability context, affected products, example output, mitigation guidance, and references. Overall purpose is to demonstrate and automate exploitation of a pre-authentication bypass in cPanel/WHM by abusing session handling and malformed Basic Authorization header processing.0xBlackash · Disclosed May 1, 2026 · python · markdown · network · webOperationalcve-2026-41940-exploitThis repository is a small standalone Python exploit for CVE-2026-41940 targeting cPanel/WHM authentication bypass on the WHM service, typically exposed on port 2087. The repository contains only two files: a minimal README with usage examples and a single executable script, exploit.py, which is the main entry point. The exploit is clearly operational rather than a simple detector. It performs a multi-stage network attack against a remote WHM instance: (1) it parses a target URL and optionally processes a file of targets; (2) it discovers the canonical hostname by requesting /openid_connect/cpanelid and reading the redirect Location header; (3) it sends a POST to /login/?login_only=1 with invalid credentials to obtain a whostmgrsession cookie; (4) it reuses the cookie while sending a crafted Basic Authorization header containing CRLF-injected internal authentication fields that assert root identity, TFA verification, and root privileges; (5) it extracts a leaked /cpsess########## token from a redirect Location header; (6) it calls /scripts2/listaccts to trigger propagation of the manipulated session state; (7) it verifies privileged access via {token}/json-api/version; and finally (8) it invokes the WHM passwd API to change the root password. The script’s main capability is full authentication bypass leading to privileged WHM API access as root. Its post-exploitation action is hardcoded: it changes the root password to 'root' and prints that the operator can log in with root:root. This makes the exploit destructive/impactful, not merely demonstrative. The code uses Python requests with TLS verification disabled, custom Host header spoofing, manual cookie extraction from raw headers, and regex parsing of redirect tokens. It supports both single-target execution and batch processing from a file. No external C2, callback infrastructure, or framework integration is present.0xF55 · Disclosed May 1, 2026 · python · markdown · network · webOperationalCVE-2026-41940This repository is a small standalone Python exploit project with 2 files: a README describing usage and an executable script, exploit.py, which contains the full exploit logic. It is not part of a known exploitation framework. The exploit targets CVE-2026-41940, described here as an authentication bypass in cPanel/WHM. The script’s stated workflow is: send an initial failed login or pre-auth request to obtain session-related state, abuse CRLF/header injection to forge or poison authorization/session handling, access privileged WHM resources, verify success via WHM API endpoints, and optionally change the root password. The code also includes multithreaded scanning, randomized browser-like headers/user agents, disabled TLS verification warnings, JSON result output, and optional Telegram notifications. Repository structure: - README.md: documents installation, CLI arguments, examples, expected output, and the exploit chain. - exploit.py: main Python entry point with argparse-based CLI, target parsing/loading, thread pool execution, result aggregation, and exploitation logic. Main capabilities observed: - Accepts either a single target or a file of targets. - Normalizes targets and assumes WHM HTTPS port 2087 when omitted. - Supports check-only mode to validate likely vulnerability without changing credentials. - In exploit mode, attempts to change the WHM root password using the WHM passwd API. - Uses randomized User-Agent and browser-like headers to reduce obvious automation fingerprints. - Runs against multiple hosts concurrently using ThreadPoolExecutor. - Saves structured JSON results to a user-specified output file. - Sends Telegram alerts on successful exploitation if bot token/chat ID are configured. Notable target-facing endpoints are WHM administrative/API paths such as /scripts2/listaccts, /json-api/version, and /json-api/passwd, all consistent with post-auth administrative functionality. The Telegram Bot API is the only external third-party service referenced by the code. Overall, this is an operational exploit rather than a mere detector: it contains logic for both vulnerability validation and post-bypass impact (root password change).dennisec · Disclosed May 2, 2026 · python · markdown · web · networkOperationalCVE-2026-41940This repository is a standalone Python proof-of-concept exploit toolkit for an alleged cPanel/WHM authentication bypass tracked here as CVE-2026-41940. It is not part of a major exploit framework. The repo contains 9 files, with the main logic split across main.py and modules/{cli,constants,exploit,output}. main.py is the entry point and orchestrates either single-target exploitation or concurrent mass scanning using a ThreadPoolExecutor. modules/cli.py handles argument parsing, host:port parsing, and target-file/CIDR expansion. modules/constants.py defines default service ports, cookie names, retry limits, and vulnerability metadata. modules/output.py provides Rich-based terminal UI, progress bars, summaries, and output-file writing. modules/exploit.py contains the core attack logic: HTTP session creation with retries, passive cPanel detection, session cookie parsing, CRLF payload construction, Authorization header generation, and worker logic for exploit/check operations. The exploit’s stated purpose is to abuse session-file manipulation via CRLF injection in cPanel/WHM authentication handling. The visible code shows a crafted Basic Authorization payload that injects session fields such as hasroot=1, tfa_verified=1, user=<target_user>, cp_security_token=/cpsess9999999999, and successful_internal_auth_with_timestamp=<timestamp>. The README describes a 4-step chain: create a session via POST /login/?login_only=1, trigger CRLF injection with a GET / request carrying the malicious Authorization header, then access privileged resources under /cpsess<TOKEN>/ and confirm success via /json-api/version. The truncated exploit.py content prevents full confirmation of every request implementation, but the available code and README consistently indicate an operational exploit rather than a detector-only script. Capabilities include passive fingerprinting of cPanel/WHM/webmail instances, optional version extraction from returned HTML, single-host exploitation, mass exploitation, configurable concurrency up to 50 workers, retry-enabled HTTP sessions, SSL/no-SSL modes, optional SSL verification disablement, quiet/no-banner modes for automation, and writing vulnerable hosts to an output file. Fingerprintable targets and observables include the cPanel management ports 2087/2086/2083/2082/2096/2095, cookie names whostmgrsession and cpsession, the hardcoded token path /cpsess9999999999, and the documented endpoints /login/?login_only=1, /, /cpsess<TOKEN>/, and /json-api/version. Overall, this is a modular offensive PoC aimed at authenticated-session bypass and privilege escalation against vulnerable cPanel-family services.ThatNotEasy · Disclosed May 2, 2026 · python · markdown · web · networkOperationalCVE-2026-41940-Exploit-PoCThis repository is a standalone Go-based exploit tool for CVE-2026-41940, described as a cPanel & WHM authentication bypass via CRLF injection in session handling. The repository is small and centered on a single executable source file, main.go, plus documentation, a sample results file, a large target list, and a GitHub Actions workflow that cross-compiles binaries for Windows, Linux, and macOS. The exploit logic in main.go implements a multi-stage network attack chain against WHM over HTTPS, defaulting to port 2087. It first discovers the canonical hostname using /openid_connect/cpanelid, then requests a pre-auth session via POST /login/?login_only=1 with invalid credentials, extracts the whostmgrsession cookie, and performs a CRLF injection by sending a crafted Basic Authorization header containing base64-encoded newline-delimited session fields. The injected fields are intended to mark the session as internally authenticated, verified for TFA, and associated with root privileges. The tool then parses a /cpsess########## token from the redirect Location header and uses WHM API paths to validate successful compromise. The README indicates additional post-exploitation capabilities beyond verification, including listing cPanel accounts, interactive shell access, command execution, and other administrative actions controlled by CLI flags such as -action, -cmd, -passwd, -user, -domain, -ssh, -dump, and -exfil. Because the code excerpt is truncated, not every handler is visible, but the flag surface and documentation strongly indicate the tool is designed for both exploitation and follow-on administrative abuse once root WHM access is obtained. Operationally, the tool supports single-target mode, file-based mass scanning via urls.txt, stdin-fed targets, configurable concurrency, verbose HTTP request/response dumping, timeout control, and JSON result export. It disables TLS certificate verification, avoids redirects, and is built for high-volume scanning. The included urls.txt contains a large list of public IPs and hostnames, which appears intended for bulk targeting. The included results.json demonstrates successful identification of at least one vulnerable host and records the target URL, cpsess token, API verification URL, session identifier, and timestamp. Overall, this is a real exploit implementation rather than a detector or README-only repository. It is best classified as OPERATIONAL: it contains working exploit code and a hardcoded payload for privilege escalation, but it is not embedded in a larger exploitation framework.Ishanoshada · Disclosed May 2, 2026 · go · yaml · network · webOperationalCVE-2026-41940Repository contains a minimal README and a single Python exploit script, poc.py, which is the clear entry point. The script is an operational exploit for cPanel WHM that performs a multi-stage authentication bypass/session-confusion workflow against the WHM HTTPS service, defaulting to port 2087. The code first sends a failed login request to /login/?login_only=1 to harvest a whostmgrsession cookie, then sends a crafted Authorization header containing a base64-encoded forged internal-auth blob for root. It extracts a leaked /cpsess########## token from the redirect Location header, triggers propagation with /scripts2/listaccts, and verifies privileged access through WHM JSON APIs such as /json-api/version and gethostname. Beyond proving access, the exploit includes post-exploitation features. It can enumerate, create, and revoke WHM API tokens via api_token_list, api_token_create, and api_token_revoke, enabling persistence as root. It also supports direct interactive shell access by connecting to the WHM terminal feature over WebSocket, effectively giving the operator a root terminal in the browser-backed terminal subsystem. Command-line options support single-target exploitation (--target), bulk persistence mode from a target list (--list with --persist), interactive shell mode (--shell), token persistence output (--output), and terminal tuning/debug options (--delay, --debug). Overall purpose: unauthorized root-level access to vulnerable WHM instances, with two main capabilities: immediate interactive root shell via WebSocket terminal and durable persistence via root API token creation. The repository is not a detector; it is a real exploit with post-exploitation functionality.MrOplus · Disclosed May 2, 2026 · python · markdown · web · networkOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
CpanelCpanelapplication
CpanelWhmapplication
CpanelWp Squaredapplication
FAQ

Frequently asked questions

Is CVE-2026-41940 exploited in the wild?
Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Apr 30, 2026.
Is there a public exploit for CVE-2026-41940?
Yes. Mallory tracks 52 public exploits or proofs of concept for CVE-2026-41940, the earliest disclosed Apr 29, 2026.
Is there a patch for CVE-2026-41940?
Apply the vendor security updates for affected cPanel & WHM and WP Squared installations immediately. Build 11.102.0.3 is identified as a minimum fixed cPanel & WHM build, but fixed versions should be verified against the vendor bulletin for each release branch and product.
What products are affected by CVE-2026-41940?
Cpanel, Cpanel Whm, and Cpanel Wp Squared.
How severe is CVE-2026-41940?
CVE-2026-41940 has a CVSS v4 score of 9.3 (Critical) and an EPSS score of 98.5% (100th percentile) as of Nov 19, 2026.
Activity feed

Recent activity

640 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
malware newsNews · Nov 4, 2026KeyHunter Operation: Harvard Alumni Data, Stanford Applications and LLM Key Theft - Malware News - Malware Analysis, News and IndicatorsA critical cPanel & WHM authentication bypass rated CVSS 3.1 9.8 that can enable root-level WHM API access. The report states it was added to CISA KEV on April 30, 2026, indicating known exploitation globally. In the KeyHunter operation, leepsmarts staged an exploit against UTN Argentina, Arizona Christian University and the University of Utah. Logs document an incomplete attempt against Arizona Christian University; successful exploitation of these institutions is not confirmed.Read more ↗socradar blogNews · Nov 4, 2026KeyHunter Operation: Harvard Alumni Data, Stanford Applications and LLM Key TheftA critical cPanel & WHM authentication bypass, rated CVSS 3.1 9.8, that can enable unauthenticated root-level WHM access through manipulated authentication/session handling. The report states it entered CISA's Known Exploited Vulnerabilities catalog on April 30, 2026. In the KeyHunter operation, leepsmarts possessed a four-stage exploit script targeting UTN Argentina, Arizona Christian University and the University of Utah, with an SSH key prepared for post-exploitation persistence. The documented Arizona Christian University attempt failed to obtain a session token, and none of these institutions is confirmed compromised through this vulnerability.Read more ↗the hacker newsNews · Oct 29, 2026ThreatsDay: Critical Firewall Flaws, Banking Trojans Rented, Weaponized PDF, Token Theft + 26 More StoriesA vulnerability used to target cPanel systems within a supply-chain campaign involving hijacked GitHub repositories and a Miasma-family npm worm. The article does not describe the vulnerability's technical mechanism.Read more ↗heiseNews · Oct 29, 2026Angreifer kapern 42 GitHub-Repositories für npm-Wurm-Kampagne „testmetest“ | heise onlineA critical vulnerability affecting cPanel systems, targeted by Shellpanel workflows found in some compromised GitHub repositories. The researchers did not establish an end-to-end attack chain connecting the testmetest npm infection to exploitation of this flaw. Technical details and exploitation outcomes are not provided.Read more ↗
+61 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence22Every report linking this CVE to a named adversary.
Associated malware60Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity133Community discussion across Reddit, Mastodon, and other social sources.