| 제목 | 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. PM 02:18 (23 날 ago) |
|---|
| 모더레이션 | 2026. 12. 06. PM 10:29 (23 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 450905 [Zhouc02 PHP_Library_Management_System 까지 aa983c2944e9aba29ef6184cd685d6424c4df491 changeAct.php SQL 주입] |
|---|
| 포인트들 | 20 |
|---|