Lucene search
K

ECommerceMajor - (productdtl.php, prodid param) SQL Injection Vulnerability

🗓️ 14 Dec 2015 00:00:00Reported by Rahul Pratap SinghType 
zdt
 zdt
🔗 0day.today👁 27 Views

ECommerceMajor SQL Injection Vulnerability in productdtl.ph

Code
#Exploit Title      : ECommerceMajor SQL Injection Vulnerability
#Exploit Author  : Rahul Pratap Singh
#Date                 : 13/Dec/2015
#Home page Link  : https://github.com/xlinkerz/ecommerceMajor
#Website            : 0x62626262.wordpress.com
#Linkedin : https://in.linkedin.com/in/rahulpratapsingh94
 
1. Description
 
"prodid" field in productdtl.php is not properly sanitized, that leads to
SQL Injection Vulnerability.
 
2. Vulnerable Code:
 
line 14 to 28
 
<?php
$getallproduct="select * from purchase where id=$_GET[prodid] order by id
desc";
$getallproductresult=mysql_query($getallproduct);
$getallproducttotal=mysql_num_rows($getallproductresult);
 
3. POC
 
http://127.0.0.1/ecommercemajor/productdtl.php?prodid=SQLI

#  0day.today [2018-04-11]  #

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