Lucene search
+L

OpenCart 2.0.3.1 Cross Site Scripting

🗓️ 15 Aug 2016 00:00:00Reported by Hamed IzadiType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 93 Views

OpenCart 2.0.3.1 Cross Site Scripting Vulnerability, allows session hijacking & admin privilege escalation

Code
`###########################  
  
# OpenCart 2.0.3.1 Cross Site Scripting Vulnerability  
  
###########################  
  
Information  
--------------------  
Author: Hamed Izadi   
Email: ("hamedizadi", "@", "gmail", ".com");  
Name: XSS Vulnerability in OpenCart  
Affected Software : OpenCart  
Affected Versions: v2.0.3.1 and possibly below  
Vendor Homepage : http://www.opencart.com  
Vulnerability Type : Cross-site Scripting  
Severity : Important  
  
  
Description  
--------------------  
By exploiting a Cross-site scripting vulnerability the attacker can hijack  
a logged in users session. This means that the malicious hacker can change  
the logged in users password and invalidate the session of the victim  
while the hacker maintains access. As seen from the XSS example in this  
article, if a web application is vulnerable to cross-site scripting and the  
administrators session is hijacked, the malicious hacker exploiting the  
vulnerability will have full admin privileges on that web application.  
  
Technical Details  
--------------------  
Proof of Concept URLs for XSS in OpenCart v2.0.3.1:  
  
/opencart/index.php?route=product/product&product_id=1  
(product_id - GET)  
  
XSS Payload : %27);window[%27al\u0065rt%27](/XSS/);//  
  
Example:   
/opencart/index.php?route=product/product&product_id=1%27);window[%27al\u0065rt%27](/XSS/);//  
  
After opening the above URL, click on "Add to Wish List" & "Compare this Product" icons,  
and view the alert window.  
  
  
  
  
Solution  
--------------------  
Upgrade to newer version  
  
  
Credits & Authors  
--------------------  
These issues have been discovered by Hamed Izadi  
  
  
  
###########################  
  
# Iran  
  
# L U Arg  
  
###########################  
`

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