cPanel and WHM 11.25 42174 HTTP response splitting attacks

Credit: Trancer
Risk: Low
Local: No
Remote: Yes

Recognize-Security - cPanel HTTP Response Splitting Vulnerability ----------------------------------------------------------------- Security Advisory by Trancer January 21 2010 "Hacking, however, is an art, not a science." Vendor ------ cPanel Inc. - Vulnerability Information ------------------------- Application description: "cPanel is the industry leader for turning standalone servers into a fully automated point-and-click hosting platform. Tedious tasks are replaced by web interfaces and API-based calls. cPanel is designed with multiple levels of administration including admin, reseller, end user, and email-based interfaces. These multiple levels provide security, ease of use, and flexibility for everyone from the server administrator to the email account user." - cPanel website. Remotely exploitable: Yes Localy exploitable: No Affected versions: - cPanel 11.25 build 42174 - WHM (WebHost Manager) 11.25 build 42174 * Previous versions may also be affected. Vulnerability Details --------------------- An input validation problem exists within cPanel and WHM versions 11.25 (up to build 42174) which allows injecting CR (carriage return - %0D or r) and LF (line feed - %0A or n) characters into the server HTTP response header, resulting in a HTTP Response Splitting[1] vulnerability. The vulnerability exists in the failurl parameter of cPanel login page. In a failed login attempt, the value of failurl returns to the client in the Location HTTP header. This vulnerability is possible because the application fails to validate user supplied input to failurl parameter, returning it un-sanitized within the server HTTP response header back to the client. This vulnerability not only gives attackers control of the remaining headers and body of the server response, but also allows them to create additional responses entirely under their control. Attacker-supplied HTML or JavaScript code could run in the context of the affected site, potentially allowing an attacker to steal cookie-based authentication credentials, control how the site is rendered to the user, and influence or misrepresent how web content is served, cached, or interpreted. Other attacks are also possible. cPanel Inc. patched the HTTP Response Splitting vulnerability in the latest versions (build 42213 up to 42483 &#65533; latest version) of cPanel and WHM, but an Open Redirection[2][3] vulnerability still exist (see Disclosure Timeline). Proof-of-Concept ---------------- Header Injection ("Set-Cookie"): Server Response: HTTP/1.1 307 Moved Server: cpsrvd/11.25 Connection: close Content-length: 105 Location: Set-Cookie: Rec=Sec Content-type: text/html <html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL= Set-Cookie: Rec=Sec"></head><body></body></html> Cross-Site Scripting:;%3C/script%3E%3C!-- Server Response: HTTP/1.1 307 Moved Server: cpsrvd/11.25 Connection: close Content-length: 206 Location: Content-Type: text/html <script>alert("Recognize-Security - "+document.cookie);</script><!-- Content-type: text/html <html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL= Content-Type: text/html &lt;script&gt;alert(&quot;Recognize-Security - &quot;+document.cookie);&lt;/script&gt;&lt;!--"></head><body></body></html> Open Redirection: Server Response: HTTP/1.1 307 Moved Server: cpsrvd/11.25 Connection: close Content-length: 106 Location: Content-type: text/html <html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL="></head><body></body></html> Discovery --------- Moshe Ben Abu - Trancer Recognize-Security mtrancer [AT_nospam] Disclosure Timeline ------------------- - 16/12/2009 &#65533; Recognize-Security notifies cPanel Security Team about an HTTP Response Splitting vulnerability discovered in cPanel and WHM version 11.25 build 42174, sending security advisory draft. - 17/12/2009 &#65533; cPanel Security Team confirmed HTTP Response Splitting vulnerability, setting the release date of a patched version to January 1st, 2009. - 17/12/2009 &#65533; Recognize-Security asks for further information regarding the exact version numbers of the vulnerable systems. Got no response. - 21/12/2009 &#65533; cPanel Inc. release cPanel and WHM version 11.25.0 build 42213, fixing HTTP response splitting vulnerability. - 22/12/2009 &#65533; Recognize-Security request status regarding the vulnerability from cPanel Security Team. Got no response. - 14/01/2010 &#65533; Recognize-Security confirmed the HTTP Response Splitting vulnerability patched on the latest cPanel and WHM versions (build 42483) and find the patch is insufficient, an Open Redirection vulnerability exist. Recognize-Security notifies the cPanel Security Team about the new findings and asks them to respond. Got no response. - 21/01/2010 &#65533; Recognize-Security release security advisory. References ---------- [1] &#65533;HTTP Response Splitting, Web Cache Poisoning Attacks, and Related Topics&#65533; by Amit Klein, [2] "URL Redirector Abuse" - The Web Application Security Consortium Threat Classification v2.0, [3] "Open Redirect" &#65533; OWASP, About Recognize-Security ------------------------ Recognize-Security is a non-profit information security web site authored by Moshe Ben Abu (Trancer), focusing on vulnerability research, exploit development (mainly for the Metasploit Framework), web application security, and information security and hacking news from around the world.

Vote for this issue:


Thanks for you vote!


Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.

(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2022,


Back to Top