| タイトル | itsourcecode Hospital Management System 1.0 SQL Injection |
|---|
| 説明 | Description:
The patient login concatenates both `loginid` and `password` directly into SQL without sanitization. Both fields are independently injectable. Passwords stored in plaintext.
Vulnerable Code:
**File**: `patientlogin.php`, Line 12
```php
$query = "SELECT * FROM patient WHERE loginid='".$_POST['loginid']."' AND password='".$_POST['password']."'";
$result = mysqli_query($con, $query);
```
Plaintext password comparison, no escaping.
Impact:
- Patient account takeover
- Access to all patient medical records, treatment history
- Plaintext credential exposure via UNION injection
Reference: https://github.com/microwaveabi/vul/issues/69 |
|---|
| ソース | ⚠️ https://github.com/microwaveabi/vul/issues/69 |
|---|
| ユーザー | microwave (UID 96185) |
|---|
| 送信 | 2026年07月11日 05:18 (3 月 ago) |
|---|
| モデレーション | 2026年08月26日 18:44 (2 months later) |
|---|
| ステータス | 重複 |
|---|
| VulDBエントリ | 376306 [itsourcecode Hospital Management System 1.0 /patientlogin.php loginid SQLインジェクション] |
|---|
| ポイント | 0 |
|---|