cPanel Input Validation Flaw in 'select.html' Permits Cross-Site Scripting Attacks
|
|
SecurityTracker Alert ID: 1016383
|
|
SecurityTracker URL: http://securitytracker.com/id?1016383
|
|
CVE Reference: GENERIC-MAP-NOMATCH
(Links to External Site)
|
Date: Jun 26 2006
|
Impact: Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information
|
Exploit Included: Yes
|
Version(s): 10
|
Description: A vulnerability was reported in cPanel. A remote user can conduct cross-site scripting attacks.
The 'select.html' script does not properly filter HTML code from user-supplied input in the 'file' parameter before displaying the
input. A remote user can create a specially crafted URL that, when loaded by a target user, will cause arbitrary scripting code
to be executed by the target user's browser. The code will originate from the site running the cPanel software and will run in
the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication
cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take
actions on the site acting as the target user.
A demonstration exploit URL is provided:
http://[target]:[Port]/[Dir]/x/files/select.html?dir=/&file=
<h1><b>Your code here!!</b></h1>
Preth00nker and the staff of http://MexHackTeam.org discovered this vulnerability.
|
Impact: A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the
cPanel software, access data recently submitted by the target user via web form to the site, or take actions on the site acting
as the target user.
|
Solution: No solution was available at the time of this entry.
|
Vendor URL: www.cpanel.net/ (Links to External Site)
|
Cause: Input validation error
|
Underlying OS: Linux (Any), UNIX (Any)
|
Reported By: preth00nker@gmail.com
|
Message History:
None.
|
Source Message Contents
|
Date: 26 Jun 2006 03:36:08 -0000
From: preth00nker@gmail.com
Subject: XSS in Cpanel 10
|
A new vulnerability was found in Cpanel V.10;
It happen cause the variable *&File* of the *select.html* file (in the edit-zone) just filter the <script>'s labels and the possibility
can by open to other labels like
*Server Side Include,
*HMTL labels...
*including Javascript expressed in other ways
An attacker can use this vuln. for execute remote scripts in the browser of clients and take advantag e of this for hijacking a session
or execute SSI code in the own server
Exploit & Examples:
[+] Exploit:
http://[Target]:[Port]/[Dir]/x/files/select.html?dir=/&file= <h1><b>Your code here!!< /b></h1>
[+] Javascript:
http://[Target]:2082/frontend/x/files/select.html?dir=/&file=<IMG src="javascript:alert(' yeah');">
[+] Server Side Inclusion
http://[Target]:2082/frontend/x/files/select.html?dir=/&file=<!--#echo var="HTTP_REFERER" -->
[+] HTML
http://[Target]:2082/frontend/x/files/select.html?dir=/&file=<IFRAME SRC="index.html">
________________________________________________
discovery by the staff of http://MexHackTeam.org
By Preth00nker
Preth00nker [at] gmail [dot] com
|
|