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

TitoloZhouc02-GitHub PHP_Library_Management_System V1.0 (latest master commit) SQL Injection
Descrizione 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.
Fonte⚠️ https://github.com/Zhouc02/PHP_Library_Management_System/issues/1
Utente
 W5555 (UID 89057)
Sottomissione13/11/2026 14:18 (23 giorni fa)
Moderazione06/12/2026 22:29 (23 days later)
StatoAccettato
Voce VulDB450905 [Zhouc02 PHP_Library_Management_System fino a aa983c2944e9aba29ef6184cd685d6424c4df491 changeAct.php iniezione SQL]
Punti20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!