| 标题 | girishsaraf Online-Appointment-Booking-System f427b4757128ca253d33d0cc4e87bbb9c999a4d5 SQL Injection |
|---|
| 描述 | The affected components are the root `locateus.php` and `ulocateus.php` doctor search endpoints. The `doctorname` POST value is concatenated directly into the LIKE pattern:
```php
$doctor=$_POST['doctorname'];
$sql1 = "Select * from Doctor where UPPER(name) like UPPER('%".$doctor."%')";
$result1=mysqli_query($conn, $sql1);
```
Because the value sits inside `UPPER('%...%')`, an attacker can inject `x%') OR SLEEP(2) -- -` to break out of the function call and execute arbitrary SQL. This is unauthenticated and enables blind/time-based SQL injection. |
|---|
| 来源 | ⚠️ https://github.com/girishsaraf/Online-Appointment-Booking-System/issues/8 |
|---|
| 用户 | jiqinwang (UID 101291) |
|---|
| 提交 | 2026-09-16 15時48分 (20 日前) |
|---|
| 管理 | 2026-10-05 16時58分 (19 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 413616 [girishsaraf Online-Appointment-Booking-System 直到 f427b4757128ca253d33d0cc4e87bbb9c999a4d5 Doctor Search Endpoint locateus.php mysqli_query doctorname SQL注入] |
|---|
| 积分 | 20 |
|---|