Test cPanel auth bypass with CRLF in pass

AuthenticationExploitation

Written with a model's help from “The Internet Is Falling Down, Falling Down, Falling Down (cPanel & WHM Authentication Bypass CVE-2026-41940)” by Sina Kheirkhah on watchTowr Labs. Read the writeup before relying on it.

To test for a cPanel authentication bypass, send an Authorization: Basic header with a base64-encoded user:pass string that contains a CRLF (\r\n) in the pass part. If the server writes the pass value to a session file without proper sanitization, it may be possible to inject malicious data. Look for a response that indicates a successful login or a session file being created with the injected data. The pass value is written to the session file at /var/cpanel/sessions/raw/<sess> if the $ob variable is empty, which can happen if the whostmgrsession cookie does not contain a comma or a value after the comma.

http
POST /login/?login_only=1 HTTP/1.1
Host: target:2087
Content-Type: application/x-www-form-urlencoded
Content-Length: 20
user=root&pass=wrong

Follow #auth-bypass or #cpanel for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.