Test cPanel auth bypass with CRLF in pass
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.
POST /login/?login_only=1 HTTP/1.1
Host: target:2087
Content-Type: application/x-www-form-urlencoded
Content-Length: 20
user=root&pass=wrongFollow #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.