Lucene search
K

OpenCart 1.5.6.4 PHP Object Injection Vulnerability

🗓️ 30 Nov 2014 00:00:00Reported by Egidio RomanoType 
zdt
 zdt
🔗 0day.today👁 189 Views

OpenCart 1.5.6.4 PHP Object Injection Vulnerability, allows arbitrary PHP object injection, SSRF attacks and XXE attacks. Update to version 1.5.6.5 or apply provided patch

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2014-3990
20 Mar 201821:00
cve
Cvelist
CVE-2014-3990
20 Mar 201821:00
cvelist
NVD
CVE-2014-3990
20 Mar 201821:29
nvd
Packet Storm
OpenCart 1.5.6.4 PHP Object Injection
14 Jul 201400:00
packetstorm
Prion
Server side request forgery (ssrf)
20 Mar 201821:29
prion
securityvulns
[KIS-2014-08] OpenCart <= 1.5.6.4 (cart.php) PHP Object Injection Vulnerability
16 Oct 201400:00
securityvulns
securityvulns
Web applications security vulnerabilities summary (PHP, ASP, JSP, CGI, Perl)
17 Oct 201400:00
securityvulns
OpenCart <= 1.5.6.4 (cart.php) PHP Object Injection Vulnerability

• Software Link:

http://www.opencart.com/

• Affected Versions:

Version 1.5.6.4 and prior versions.

• Vulnerability Description:

The vulnerable code is located in the “Cart::getProducts()” method defined in /system/library/cart.php:
23
24
25
26
27
28
29
30
31
32
33
	
foreach ($this->session->data['cart'] as $key => $quantity) {
    $product = explode(':', $key);
    $product_id = $product[0];
    $stock = true;
 
    // Options
    if (!empty($product[1])) {
        $options = unserialize(base64_decode($product[1]));
    } else {
        $options = array();
    }

The vulnerability exists because this method uses the “unserialize()” function with the key values of the array stored into the “data[cart]” session variable without a proper validation. Such values might be manipulated by an unauthenticated attacker via the $_POST['quantity'] parameter during an “update” request. This can be exploited to inject arbitrary PHP objects into the application scope, and could allow an attacker to conduct Server-Side Request Forgery (SSRF) attacks by abusing the destructor method of the “DBMySQLi“ class and possibly other attacks leveraging magic methods of classes defined in third-party extensions.

NOTE: if OpenCart is running on PHP before version 5.3.23 or 5.4.13 this vulnerability could also be exploited to carry out XML External Entity (XXE) attacks, which in turn might allow arbitrary command execution if the PHP “expect“ extension is installed.

• Solution:

Update to version 1.5.6.5 when will be released or apply this patch: http://git.io/F3dGoA

• Disclosure Timeline:

[02/06/2014] – First attempt to contact the vendor
[04/06/2014] – Issue reported to http://git.io/uOsKfA
[06/06/2014] – CVE number requested
[06/06/2014] – CVE number assigned
[25/06/2014] – Vendor contacted again asking when will be released a fixed version
[25/06/2014] – Vendor replied there’s no need to alert its users because the vulnerability is very weak
[14/07/2014] – Public disclosure

• CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2014-3990 to this vulnerability.

#  0day.today [2018-01-26]  #

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

30 Nov 2014 00:00Current
9.2High risk
Vulners AI Score9.2
EPSS0.10961
189