| शीर्षक | girishsaraf Online-Appointment-Booking-System f427b4757128ca253d33d0cc4e87bbb9c999a4d5 SQL Injection |
|---|
| विवरण | The affected components are the root AJAX endpoints `get_town.php`, `getclinic.php`, `getdoctordaybooking.php`, and `getDay.php`. Each one concatenates a POST parameter into a SQL query without escaping:
```php
// get_town.php
$query = "SELECT * FROM clinic WHERE City = '" . $_POST["countryid"] . "'";
// getclinic.php
$query = "SELECT * FROM clinic WHERE Town = '" . $_POST["townid"] . "'";
// getdoctordaybooking.php
$query = "SELECT distinct DID FROM doctor_availability WHERE CID =".$_POST["cid"];
// getDay.php
$query = "SELECT * FROM doctor_availability WHERE DID = '" . $_POST["didval"] . "' AND CID='".$_POST["cidval"]."'";
```
These endpoints require no authentication. An attacker can inject `SLEEP()` expressions and observe measurable response delays (e.g. `time_total=2.004s`, `10.016s`), confirming blind SQL injection and enabling time-based data exfiltration.
|
|---|
| स्रोत | ⚠️ https://github.com/girishsaraf/Online-Appointment-Booking-System/issues/7 |
|---|
| उपयोगकर्ता | jiqinwang (UID 101291) |
|---|
| सबमिशन | 16/09/2026 03:47 PM (20 दिन पहले) |
|---|
| संयम | 05/10/2026 04:58 PM (19 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 413615 [girishsaraf Online-Appointment-Booking-System तक f427b4757128ca253d33d0cc4e87bbb9c999a4d5 AJAX Endpoint get_town.php countryid/townid/cid/didval/cidval SQL इंजेक्शन] |
|---|
| अंक | 20 |
|---|