Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-01021
- Vendor: 天主教道明中學
- Title: 天主教道明中學選課系統登錄存在SQLI並且導致RCE
- Introduction: 登陸位置可以SQL Injection
處理狀態
目前狀態
公開
Last Update : 2025/09/06
-
新提交
-
已審核
-
已通報
-
已修補
-
未複測
-
公開
處理歷程
- 2025/08/19 18:36:52 : 新提交 (由 5yu4n 更新此狀態)
- 2025/08/20 23:48:44 : 新提交 (由 5yu4n 更新此狀態)
- 2025/08/21 01:06:25 : 新提交 (由 5yu4n 更新此狀態)
- 2025/08/21 22:30:41 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 18:57:13 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 18:57:13 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 18:57:13 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/29 14:09:35 : 已修補 (由 組織帳號 更新此狀態)
- 2025/09/06 03:00:23 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-01021
- 通報者:rickccs (5yu4n)
- 風險:嚴重
- 類型:資料庫注入攻擊 (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://phpweb2.dmhs.kh.edu.tw/selclass/index.php
敘述
我在該網站的登入系統發現存在 SQL 注入(SQL Injection)漏洞,攻擊者可利用此漏洞對資料庫進行操作
可以使用
PoC
進入網站登入頁面:https://phpweb2.dmhs.kh.edu.tw/selclass/index.php
用sqlmap進行測試:
sqlmap -u "https://phpweb2.dmhs.kh.edu.tw/selclass/index.php" --data="uid=test_here&upasswd=1&button=登入" -p uid --cookie="PHPSESSID=xxxx" --sql-shell
可能影響:
可能影響後端資料庫安全性,包括使用者帳號密碼與敏感資訊
後續發現
https://phpweb2.dmhs.kh.edu.tw/board/
公告欄發布位置可以上傳webshell
如 https://phpweb2.dmhs.kh.edu.tw/board/upload/202508200319340.php
修補建議
使用 預處理語句,避免直接拼接 SQL 查詢字串。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。