| Titre | raisulislamg4 student_management_system_by_php 1.0 SQL Injection |
|---|
| Description | The login script constructs an SQL query by directly concatenating the user‑supplied `username` and the MD5 hash of the `password` into the query string:
```php
$name = $_POST['username'];
$pass = md5($_POST['password']);
$sql = "SELECT * FROM USERS WHERE USERNAME='".$name."' AND PASSWORD='".$pass."' ";
$result = mysqli_query($data, $sql);
```
No parameterisation, escaping, or input validation is applied. An attacker can inject arbitrary SQL logic into the username field to bypass the password check entirely. Upon successful injection, the server sets a valid session and redirects to the admin dashboard, giving the attacker full administrative privileges. |
|---|
| La source | ⚠️ https://github.com/raisulislamg4/student_management_system_by_php/issues/2 |
|---|
| Utilisateur | dede1 (UID 97915) |
|---|
| Soumission | 08/05/2026 06:17 (il y a 27 jours) |
|---|
| Modérer | 31/05/2026 09:59 (23 days later) |
|---|
| Statut | Accepté |
|---|
| Entrée VulDB | 367504 [raisulislamg4 student_management_system_by_php Login login_check.php Nom d'utilisateur injection SQL] |
|---|
| Points | 20 |
|---|