Soumettre #836633: imvks786 student_management_system 1.0 SQL Injectioninformation

Titreimvks786 student_management_system 1.0 SQL Injection
DescriptionThe administrator login endpoint constructs an SQL query by directly embedding the user‑supplied `a_usr` (username) and `a_pwd` (password) without any sanitisation or parameterisation: ```php $a_usr = $_POST['a_usr']; $a_pwd = $_POST['a_pwd']; $ret = mysqli_query($con, "SELECT * FROM admin WHERE userid='$a_usr' AND password='$a_pwd' "); ``` Because no input validation or query parameterisation is applied, an attacker can inject a boolean‑based payload into the username field. The payload admin' OR '1'='1 transforms the query into one that always returns at least one row, completely bypassing the password check. The server then sets a session and redirects to the admin dashboard, granting full administrative access.
La source⚠️ https://github.com/imvks786/student_management_system/issues/2
Utilisateur
 Yeliuyun (UID 94203)
Soumission25/05/2026 06:00 (il y a 16 jours)
Modérer07/06/2026 21:53 (14 days later)
StatutAccepté
Entrée VulDB369148 [imvks786 student_management_system Administrator Login Endpoint admin/admin_login.php a_usr/a_pwd injection SQL]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!