Soumettre #1095255: Zhouc02-GitHub PHP_Library_Management_System V1.0 (latest master commit) SQL Injectioninformation

TitreZhouc02-GitHub PHP_Library_Management_System V1.0 (latest master commit) SQL Injection
Description A SQL injection vulnerability was found in the 'changeAct.php' file of the 'PHP_Library_Management_System' project (https://github.com/Zhouc02/PHP_Library_Management_System). The GET parameter 'type' and the POST parameters 'img', 'title', 'content' are concatenated directly into SQL SELECT and UPDATE statements without escaping or parameterized queries: "select * from today where type='{$type}'" and "update today set img='{$img}',title='{$title}',content='{$content}' where type='{$t}'". The file reads $_SESSION['userid'] but never checks whether the user is logged in, so the endpoint is reachable without any authentication. The vulnerability was verified with sqlmap: Parameter: type (GET), Type: boolean-based blind and time-based blind (MySQL >= 5.0.12), and a manual time-based payload "type=1' AND SLEEP(5) AND '1'='1" delays the response by 5.0 seconds while a normal request responds in 0.03 seconds. Because the UPDATE statement is reachable without authentication, an attacker can also rewrite the activity content shown on the portal home page and store arbitrary markup (stored XSS) through the same injection. Attackers can exploit this to achieve unauthorized database access via blind injection, sensitive data leakage, and unauthorized tampering of home page content. No login or authorization is required to exploit this vulnerability. Suggested repair: prepared statements with parameter binding, add authentication and authorization checks (restrict this administrative function to administrators), and strict input validation.
La source⚠️ https://github.com/Zhouc02/PHP_Library_Management_System/issues/1
Utilisateur
 W5555 (UID 89057)
Soumission13/11/2026 14:18 (il y a 23 jours)
Modérer06/12/2026 22:29 (23 days later)
StatutAccepté
Entrée VulDB450905 [Zhouc02 PHP_Library_Management_System changeAct.php injection SQL]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!