| タイトル | 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 日 ago) |
|---|
| モデレーション | 2026年12月06日 22:29 (23 days later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 450905 [Zhouc02 PHP_Library_Management_System 迄 aa983c2944e9aba29ef6184cd685d6424c4df491 changeAct.php SQLインジェクション] |
|---|
| ポイント | 20 |
|---|