提交 #1095255: Zhouc02-GitHub PHP_Library_Management_System V1.0 (latest master commit) SQL Injection信息

标题Zhouc02-GitHub PHP_Library_Management_System V1.0 (latest master commit) SQL Injection
描述 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.
来源⚠️ https://github.com/Zhouc02/PHP_Library_Management_System/issues/1
用户
 W5555 (UID 89057)
提交2026-11-13 14時18分 (23 日前)
管理2026-12-06 22時29分 (23 days later)
状态已接受
VulDB条目450905 [Zhouc02 PHP_Library_Management_System 直到 aa983c2944e9aba29ef6184cd685d6424c4df491 changeAct.php SQL注入]
积分20

Do you know our Splunk app?

Download it now for free!