Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-00972
- Vendor: 嗨膳海鮮宅配(Design By 龍心數位科技)
- Title: 嗨膳海鮮宅配(Design By 龍心數位科技) 搜尋功能 SQL Injection
- Introduction: 搜尋功能 SQL Injection
處理狀態
目前狀態
公開
Last Update : 2025/10/14
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2025/08/14 11:27:04 : 新提交 (由 yusheng 更新此狀態)
- 2025/08/14 11:28:46 : 新提交 (由 yusheng 更新此狀態)
- 2025/08/14 11:29:15 : 新提交 (由 yusheng 更新此狀態)
- 2025/08/14 11:29:41 : 新提交 (由 yusheng 更新此狀態)
- 2025/08/14 17:58:12 : 新提交 (由 yusheng 更新此狀態)
- 2025/08/14 21:33:37 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 15:58:46 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 15:58:46 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 15:58:46 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/09/09 12:02:46 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/09/09 12:02:46 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/09/09 12:02:46 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/10/14 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-00972
- 通報者:cat1528985 (yusheng)
- 風險:嚴重
- 類型:資料庫注入攻擊 (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
漏洞說明: 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://www.hiseafood.com.tw/tw/products_srh.html
敘述
重現漏洞方式:
- 在搜尋欄位注入
' OR SLEEP(5)-- 123,看到 SQL Error Message - 注入
%') OR 1=1-- 123成功,推測原始的 SQL 語句應該是SELECT * FROM products WHERE column LIKE ('%keyword') - 開始嘗試用
UNION SELECT 1來慢慢推導出SELECT * FROM products有多少個欄位,最終在 19 個欄位正確回傳商品列表 - 嘗試獲取 DB Version
- 嘗試從
information_schema.tables獲取table_name - 驗證是否能夠查到 member table 的資料,先獲取 member table 的 columns
- 嘗試獲取前 10 筆
mem_name
影響:
可竊取 MariaDB 的所有資料,包含會員,訂單等等資訊
P.S. "嗨膳海鮮宅配" 的首頁最下方,有寫說 "Design By 龍心數位科技"
修補建議
使用 Prepared Statement 替代字串拼接
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。