| 标题 | 37954679 cak-filemanagement-system 5e6433246475e66462e1fea980688de96a049297 SQL Injection |
|---|
| 描述 | The affected component is `admin/save_student.php`. All POST parameters (`date`, `department`, `subject`, `forwarded_to`, `action_taken_by`, `section`) are directly concatenated into an INSERT SQL statement without sanitization or parameterized queries. The endpoint lacks any session or authentication check:
```php
$date = $_POST['date'];
$department = $_POST['department'];
$subject = $_POST['subject'];
$fowarded_to = $_POST['forwarded_to'];
$action_taken_by = $_POST['action_taken_by']."".$_POST['section'];
$password = md5($_POST['password']);
mysqli_query($conn, "INSERT INTO `logs` VALUES('', '$date', '$department', '$subject', '$fowarded_to', '$action_taken_by', '$password')") or die(mysqli_error());
```
An unauthenticated attacker can inject arbitrary SQL through any of the five unprotected parameters to extract database contents, modify records, or disrupt the application. |
|---|
| 来源 | ⚠️ https://github.com/37954679/cak-filemanagement-system/issues/1 |
|---|
| 用户 | namlau0721 (UID 102075) |
|---|
| 提交 | 2026-10-12 21時39分 (25 日前) |
|---|
| 管理 | 2026-10-30 13時37分 (18 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 429058 [37954679 cak-filemanagement-system 直到 5e6433246475e66462e1fea980688de96a049297 admin/save_student.php mysqli_query SQL注入] |
|---|
| 积分 | 20 |
|---|