Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00459
- Vendor: TACERT台灣學術網路危機處理中心
- Title: 致用高中修繕系統資料庫注入漏洞
- Introduction: 資料庫注入漏洞
處理狀態
目前狀態
公開
Last Update : 2022/09/14
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2022/07/15 13:03:43 : 新提交 (由 好男人 更新此狀態)
- 2022/07/15 13:42:19 : 新提交 (由 好男人 更新此狀態)
- 2022/07/15 13:50:48 : 新提交 (由 好男人 更新此狀態)
- 2022/07/17 01:31:13 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/07/18 22:25:12 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/07/18 22:25:12 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/09/14 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00459
- 通報者:qekuxpre (好男人)
- 風險:嚴重
- 類型:資料庫注入攻擊 (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://ms12.cycivs.tc.edu.tw/repair/reply.asp
http://ms24.cycivs.tc.edu.tw/csn10/
http://ms12.cycivs.tc.edu.tw/csn/
http://ms12.cycivs.tc.edu.tw/cy200/
http://ms24.cycivs.tc.edu.tw/csn10/
http://ms12.cycivs.tc.edu.tw/csn/
http://ms12.cycivs.tc.edu.tw/cy200/
敘述
利用「ZD-2022-00458」漏洞進入管理模式,並查看報修內容,"https://ms12.cycivs.tc.edu.tw/repair/reply.asp?Widno=352"
嘗試對Widno參數輸入單引號,顯示報錯頁面,疑似存在sql injection
嘗試其他注入語法,發現有waf阻擋,
利用大小寫轉換繞過waf,並嘗試列舉資料表
利用字典檔爆破列舉出"users"資料表
列舉欄位數量為8個
將前述取得資訊嘗試注入,"https://ms12.cycivs.tc.edu.tw/repair/reply.asp?Widno=352%20union%20sElect%201,2,3,4,5,6,7,8%20frOm%20users"
利用字典檔爆破列舉出"name,account,pwd"欄位,"https://ms12.cycivs.tc.edu.tw/repair/reply.asp?Widno=352%20union%20sElect%201,2,account,pwd,name,6,7,8%20frOm%20users"
再將欄位帶入參數,顯示資料
將取得使用者名稱及密碼"30110"登入「致用高中」請購修及派車系統、學業成績及出缺勤查詢、學生事務系統,皆可以總務主任身份登入
修補建議
在處理包含用戶輸入的 SQL 查詢時使用參數化查詢。 參數化查詢允許數據庫了解應該將 SQL 查詢的哪些部分視為用戶輸入,從而解決 SQL 注入問題。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。