cPanel Basic authorization with injected session records (CVE-2026-41940)
- First seen
- 2026-10-23
- Last seen
- 2026-10-25
- Used in
- 1 post
alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"EXPLOIT cPanel Basic Auth CRLF Session Injection (CVE-2026-41940)"; flow:to_server,established; http.header; content:"authorization: basic "; nocase; base64_decode:bytes 256,offset 0,relative; base64_data; pcre:"/\r?\n(?:successful_(?:internal|external)_auth_with_timestamp|hasroot|tfa_verified)=/"; reference:cve,2026-41940; classtype:attempted-admin; sid:1000898001; rev:1; metadata:created_at 2026_10_21, deployment Ingress;)Posts using this rule
TLS-terminated HTTP ingress in front of cPanel & WHM (TCP/2082, 2083, 2086, 2087, 2095, 2096) · SID 1000898001
Decodes the `Authorization: Basic` header (`base64_decode` + `base64_data`) and matches an embedded line break followed by an injected session record (`successful_internal_auth_with_timestamp=`, `successful_external_auth_with_timestamp=`, `hasroot=`, or `tfa_verified=`), catching both `hasroot=0` (used in this cluster) and `hasroot=1` (used in the public watchTowr PoC and our earlier [cPanel Alfa Team Shell advisory](https://cyfar.ca/engagements/cpanel-exploit-attempt-uncovers-alfa-team-shell-and-anonsec-lpe-chain)). * **Scope and tuning:** Legitimate HTTP Basic credentials never contain embedded CR/LF session keys; exclude only authorized vulnerability-scanning sources.