Picsee .git 原始碼洩漏 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2019-00770
  •  發信 Vendor: Picsee
  • Title: Picsee .git 原始碼洩漏
  • Introduction: 允許使用者存取 https://picsee.co/.git/ 下的檔案,導致全站原始碼洩漏。

處理狀態

目前狀態

公開
Last Update : 2019/10/04
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2019/08/04 13:42:13 : 新提交 (由 splitline 更新此狀態)
  • 2019/08/04 13:53:28 : 新提交 (由 splitline 更新此狀態)
  • 2019/08/05 00:15:40 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2019/08/26 21:24:16 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2019/08/26 21:24:16 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2019/08/26 21:24:16 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2019/09/02 11:10:08 : 修補中 (由 組織帳號 更新此狀態)
  • 2019/10/04 03:00:08 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2019-00770
  • 通報者:splitline (splitline)
  • 風險:中
  • 類型:資訊洩漏 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

https://picsee.co/.git/HEAD
https://picsee.co/.git/index
等等

敘述

由於可以透過 .git 下的檔案還原出全站原始碼,因此會導致原始碼以及各種 key 和資料庫密碼洩漏,並能藉此登入任意使用者帳號。

(此狀況可使用 https://github.com/lijiejie/GitHack 還原)

修補建議

刪除 server 上的 .git 資料夾 ,或是禁止外部使用者存取該資料夾下的任何檔案

// 你們 code 好醜ㄛ

擷圖

留言討論

聯絡組織

 發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。
;