JShop Input Validation Hole in 'search.php' Permits Cross-Site Scripting Attacks
|
|
SecurityTracker Alert ID: 1008988
|
|
CVE Reference: GENERIC-MAP-NOMATCH
(Links to External Site)
|
Date: Feb 9 2004
|
Impact: Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information
|
Fix Available: Yes
Exploit Included: Yes
Vendor Confirmed: Yes
|
Advisory: SystemSecure.org
|
Description: David Sopas Ferreira of SystemSecure.org reported an input validation vulnerability in JShop. A remote user can conduct cross-site scripting attacks.
It is reported that the 'search.php' script does not filter HTML code from user-supplied input in the 'xSearch' parameter before
displaying the information. 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 JShop 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 example is provided:
search.php?xSearch=%3Cscript%3Ealert%28document.domain%29
%3B%3C%2Fscrip%3E&submit=Search
The original advisory is available at:
http://www.systemsecure.org/advisories/ssadvisory09022004.php
|
Impact: A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the
JShop 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: The vendor has reportedly fixed the flaw.
|
Vendor URL: jshop.co.uk/products_jss.php (Links to External Site)
|
Cause: Input validation error
|
Underlying OS: Linux (Any), UNIX (Any), Windows (Any)
|
Reported By: David Sopas Ferreira <iamroot@systemsecure.org>
|
Message History:
None.
|
Source Message Contents
|
Date: 09 Feb 2004 13:55:07 +0500
From: David Sopas Ferreira <iamroot@systemsecure.org>
Subject: JShop E-Commerce Vulnerability
|
*SystemSecure.org Advisory*
Date: 07-02-2004
Software: JShop E-Commerce
Vendor: Warned and fixed the problem
Website: http://jshop.co.uk
This PHP/MySQL based E-Commerce system, suffers from a XSS attack
in "xSearch" variable. This can be exploited by including arbitrary HTML
or script code in the parameter, which will cause it to be executed in a
user's browser session when viewed.
Attack example:
search.php?xSearch=%3Cscript%3Ealert%28document.domain%29%3B%3C%2Fscrip%3E&submit=Search
Solution:
Filter out the variable for tags and for other special chars.
Discovered by David Sopas Ferreira
iamroot@systemsecure.org
Original advisory:
http://www.systemsecure.org/advisories/ssadvisory09022004.php
-----
David Sopas Ferreira
CEO at SystemSecure.org
ceo@systemsecure.org
Figueira da Foz, Portugal
|
|