cpCommerce Input Validation Holes in 'search.php' and 'sendtofriend.php' Permit Cross-Site Scripting Attacks
|
|
SecurityTracker Alert ID: 1021070 |
|
SecurityTracker URL: http://securitytracker.com/id/1021070
|
|
CVE Reference:
CVE-2008-4121
(Links to External Site)
|
Date: Oct 21 2008
|
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): prior to 1.2.4
|
Description:
A vulnerability was reported in cpCommerce. A remote user can conduct cross-site scripting attacks.
The software does not properly filter HTML code from user-supplied input before displaying the input. A remote user can create a specially crafted POST request that, when submitted 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 cpCommerce 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 'search' parameter in 'search.php' and the 'name' parameter in 'sendtofriend.php' are affected.
The vendor was notified on September 23, 2008.
The original advisory is available at:
http://www.datensalat.eu/~fabian/cve/CVE-2008-4121-cpcommerce.html
Fabian Fingerle reported this vulnerability.
|
Impact:
A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the cpCommerce 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 issued a fixed version (1.2.4), available at:
http://cpcommerce.cpradio.org/
|
Vendor URL: cpcommerce.cpradio.org/ (Links to External Site)
|
Cause:
Input validation error
|
Underlying OS:
Linux (Any), UNIX (Any), Windows (Any)
|
|
Message History:
None.
|
Source Message Contents
|
Date: Mon, 20 Oct 2008 00:01:42 +0200
Subject: Cross Site Scripting (XSS) Vulnerabilitiy in cpcommerce,
|
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.
--=_zucker.schokokeks.org-29312-1224446526-0001-2
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Cross Site Scripting (XSS) Vulnerabilitiy in cpcommerce,
CVE-2008-4121=20
References
http://www.datensalat.eu/~fabian/cve/CVE-2008-4121-cpcommerce.html
http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCVE-2008-4121
http://cpcommerce.cpradio.org/
Description
cpCommerce is an open-source e-commerce solution that is maintained by
templates and modules.=20
Example
Assuming cpcommerce is installed on http://localhost/cpcommerce/,
anybody could inject JavaScript:
<form method=3D"post" action=3D"http://localhost/cpcommerce/search.php">
<input type=3D"hidden" name=3D"action" value=3D"search.quick">
<input type=3D"text" name=3D"search" value=3D'"><script>alert(1)</script>'>
<input type=3Dsubmit></form>
<form method=3D"post" action=3D"http://localhost/cpcommerce/sendtofriend.ph=
p"> <input
type=3D"hidden" name=3D"action" value=3D"sendtofriend">=20
<input type=3D"text" name=3D"name" value=3D'"><script>alert(1)</script>'>
<input type=3Dsubmit></form>
Disclosure Timeline
2008-09-23 Vendor contacted
2008-09-23 Vendor released 1.2.4
2008-10-19 Published advisory
CVE Information
The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CVE-2008-4121 to this issue. This is a candidate for inclusion in
the CVE list (http://cve.mitre.org/), which standardizes names for
security problems.=20
Credits and copyright
This vulnerability was discovered by Fabian Fingerle (published with
help from Hanno Boeck [0]). It's licensed under the creative commons
attribution license.
Fabian Fingerle, 2008-09-04, http://www.fabian-fingerle.de
[0] http://www.hboeck.de
--=_zucker.schokokeks.org-29312-1224446526-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=signature.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkj7rksACgkQ/aNqCatBq4WLcACglcv07jybfc5wu+MaR87Z9USV
PswAmweNb9BpkS4pLc6Z6lOaLTHeSh8n
=2C7v
-----END PGP SIGNATURE-----
--=_zucker.schokokeks.org-29312-1224446526-0001-2--
|
|