| Título | raisulislamg4 student_management_system_by_php 1.0 SQL Injection |
|---|
| Descripción | 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. |
|---|
| Fuente | ⚠️ https://github.com/raisulislamg4/student_management_system_by_php/issues/2 |
|---|
| Usuario | dede1 (UID 97915) |
|---|
| Sumisión | 2026-05-08 06:17 (hace 27 días) |
|---|
| Moderación | 2026-05-31 09:59 (23 days later) |
|---|
| Estado | Aceptado |
|---|
| Entrada de VulDB | 367504 [raisulislamg4 student_management_system_by_php hasta 310d950e09013d5133c6b9210aff9444382d16d1 Login login_check.php Nombre de usuario inyección SQL] |
|---|
| Puntos | 20 |
|---|