Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-00969
- Vendor: 嘉義縣政府教育處學生事務及特殊教育科
- Title: 嘉義縣政府教育處 編班系統資料庫注入漏洞
- Introduction: 系統查詢頁面參數存在 SQL Injection 漏洞
處理狀態
目前狀態
公開
Last Update : 2025/09/06
-
新提交
-
已審核
-
已通報
-
已修補
-
未複測
-
公開
處理歷程
- 2025/08/13 23:10:17 : 新提交 (由 肉 更新此狀態)
- 2025/08/13 23:16:46 : 新提交 (由 肉 更新此狀態)
- 2025/08/14 21:32:06 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 15:57:03 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 15:57:03 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 15:57:03 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/29 13:02:17 : 已修補 (由 組織帳號 更新此狀態)
- 2025/09/06 03:00:20 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-00969
- 通報者: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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
http://group.cyc.edu.tw/grpps114a/pub/resu.php?sch_id=104603
敘述
在國小編班結果查詢頁面的 sch_id 參數發現 SQL Injection 漏洞,參數未經過濾直接帶入 SQL 查詢,導致可存取整個資料庫內容。
重現步驟
- 訪問編班查詢頁面:http://group.cyc.edu.tw/grpps114a/pub/resu.php?sch_id=104603
- 修改sch_id,增加一個單引號,發現異常
- 用sqlmap進一步確認: (這裡運用burp suite,先去抓到上面網址的response,存成item: class.txt,再丟給sqlmap)
sqlmap -r class.txt --banner -t 1
進一步列出dbssqlmap -r class.txt --banner -t 1 --dbs
影響
- 學生個資、編班資料外洩
- 可存取歷年資料庫(grpps111-114、course109-114)
修補建議
1. 使用參數化查詢
2. 驗證 sch_id 只接受數字輸入,並過濾特殊字元
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。