酷樂網多個學校商品頁面存在Sql Injection - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2022-00464
  •  發信 Vendor: TACERT台灣學術網路危機處理中心
  • Title: 酷樂網多個學校商品頁面存在Sql Injection
  • Introduction: 資料庫注入漏洞

處理狀態

目前狀態

公開
Last Update : 2022/09/14
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2022/07/15 20:06:37 : 新提交 (由 好男人 更新此狀態)
  • 2022/07/17 01:36:20 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2022/07/18 22:23:23 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2022/07/18 22:23:23 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2022/07/18 22:23:23 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2022/07/24 15:21:13 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2022/07/24 15:21:13 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2022/07/24 15:21:13 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2022/09/14 03:00:09 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2022-00464
  • 通報者:qekuxpre (好男人)
  • 風險:嚴重
  • 類型:資料庫注入攻擊 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

https://npustgift.colaz.com.tw/index.php?route=product/product&path=808&product_id=9170
https://yzugift.colaz.com.tw/index.php?route=product/product&product_id=9778
https://ncnugift.colaz.com.tw/index.php?route=product/product&product_id=9357
https://ndhugift.colaz.com.tw/index.php?route=product/product&product_id=9328
https://nkustgift.colaz.com.tw/index.php?route=product/product&product_id=9771
https://nsysugift.colaz.com.tw/index.php?route=product/product&product_id=9307
https://tkugift.colaz.com.tw/index.php?route=product/product&product_id=7171
https://ntpugift.colaz.com.tw/index.php?route=product/product&product_id=9313
https://niugift.colaz.com.tw/index.php?route=product/product&product_id=6083
https://nukgift.colaz.com.tw/index.php?route=product/product&product_id=9360
https://ntutgift.colaz.com.tw/index.php?route=product/product&product_id=9316
https://ntustgift.colaz.com.tw/index.php?route=product/product&product_id=9319
https://nptugift.colaz.com.tw/index.php?route=product/product&product_id=8663
https://uscgift.colaz.com.tw/index.php?route=product/product&product_id=9798
https://ntubgift.colaz.com.tw/index.php?route=product/product&product_id=9847
https://ncugift.colaz.com.tw/index.php?route=product/product&product_id=9304
https://ccugift.colaz.com.tw/index.php?route=product/product&product_id=9310
https://nknugift.colaz.com.tw/index.php?route=product/product&product_id=9337
https://ncyugift.colaz.com.tw/index.php?route=product/product&product_id=9351
https://nycugift.colaz.com.tw/index.php?route=product/product&product_id=7588
https://nqugift.colaz.com.tw/index.php?route=product/product&product_id=9826

敘述

除"清華"及"成功"外,臺大、元智、暨南、東華、高科大、中山、淡江、北大、宜蘭、高雄、北科大、臺科大、屏大、實踐、北商、中央、中正、高師、屏科大、嘉義、陽明交大、金門商品網頁中product_id參數都存在sql injection漏洞。

查看商品頁面
圖片
針對網址參數product_id輸入單引號,報出sql錯誤
圖片
利用sqlmap檢測出sql injection漏洞
圖片

修補建議

在處理包含用戶輸入的 SQL 查詢時使用參數化查詢。 參數化查詢允許數據庫了解應該將 SQL 查詢的哪些部分視為用戶輸入,從而解決 SQL 注入問題。

擷圖

留言討論

聯絡組織

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