| tiêu đề | girishsaraf Online-Appointment-Booking-System f427b4757128ca253d33d0cc4e87bbb9c999a4d5 SQL Injection |
|---|
| Mô tả | The affected components are `Admin/mlogin.php` (manager login) and `Admin/dlogin.php` (doctor login). Both handlers concatenate the submitted `uname` and `pass` POST values into the query:
```php
// Admin/mlogin.php
$query = mysqli_query($conn,"SELECT * FROM manager where username = '$_POST[uname]' AND password = '$_POST[pass]'");
// Admin/dlogin.php
$query = mysqli_query($conn,"SELECT * FROM doctor where username = '$_POST[uname]' AND password = '$_POST[pass]'");
```
An unauthenticated attacker can submit `nomanager' OR '1'='1' -- -` (or the same payload against `dlogin.php`) to make the condition always true, obtaining a manager or doctor session and bypassing the login.
|
|---|
| Nguồn | ⚠️ https://github.com/girishsaraf/Online-Appointment-Booking-System/issues/6 |
|---|
| Người dùng | friendA (UID 101290) |
|---|
| Đệ trình | 16/09/2026 15:46 (cách đây 20 ngày) |
|---|
| Kiểm duyệt | 05/10/2026 16:58 (19 days later) |
|---|
| Trạng thái | được chấp nhận |
|---|
| Mục VulDB | 413614 [girishsaraf Online-Appointment-Booking-System đến f427b4757128ca253d33d0cc4e87bbb9c999a4d5 Login Admin/mlogin.php mysqli_query uname/pass Tiêm SQL] |
|---|
| điểm | 20 |
|---|