| 제목 | girishsaraf Online-Appointment-Booking-System f427b4757128ca253d33d0cc4e87bbb9c999a4d5 SQL Injection |
|---|
| 설명 | The affected components are the root `book.php` booking handler and `cancelbookingpatient.php` cancellation handler. In `book.php`, the `Doctor` POST value is concatenated into the availability check and the INSERT:
```php
$did=$_POST['Doctor'];
$query ="SELECT * FROM doctor_availability WHERE DID = '" .$did. "' AND CID='".$cid."'";
$sql = "INSERT INTO book (...) VALUES (...'$did'...)";
```
In `cancelbookingpatient.php`, the `appointment` POST value is concatenated into an UPDATE:
```php
$timestamp=$_POST['appointment'];
$updatequery="update book set Status='Cancelled by Patient' where username='$username' and timestamp= '$timestamp'";
```
A logged-in patient can inject `1' AND SLEEP(2) -- -` (or `x' OR SLEEP(2) -- -`) to trigger measurable delays, confirming SQL injection in authenticated flows. |
|---|
| 원천 | ⚠️ https://github.com/girishsaraf/Online-Appointment-Booking-System/issues/10 |
|---|
| 사용자 | jiqinwang (UID 101291) |
|---|
| 제출 | 2026. 09. 16. PM 03:49 (19 날 ago) |
|---|
| 모더레이션 | 2026. 10. 05. PM 04:58 (19 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 413618 [girishsaraf Online-Appointment-Booking-System 까지 f427b4757128ca253d33d0cc4e87bbb9c999a4d5 Booking book.php Doctor/appointment SQL 주입] |
|---|
| 포인트들 | 20 |
|---|