Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2021-00350
- Vendor: 中天精機股份有限公司
- Title: 中天精機股份有限公司 任意檔案下載漏洞
- Introduction: 沒有安全地處理檔名參數而導致有心人士能任意下載檔案
處理狀態
目前狀態
公開
Last Update : 2021/08/27
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2021/06/27 21:21:54 : 新提交 (由 Enival 更新此狀態)
- 2021/06/27 23:43:42 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2021/06/28 12:57:37 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2021/06/28 12:57:37 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2021/06/28 12:57:37 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2021/08/27 03:00:04 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2021-00350
- 通報者:zeyyaz (Enival)
- 風險:中
- 類型:任意檔案下載 (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
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.ctmgroup.com.tw/tw/download.html
更改下載連結
https://www.ctmgroup.com.tw/downfile.php?id=../../../../proc/cpuinfo
https://www.ctmgroup.com.tw/tw/download.html
更改下載連結
https://www.ctmgroup.com.tw/downfile.php?id=../../../../proc/cpuinfo
敘述
因沒有安全地處理檔名參數
在使用者替換URL的相對路徑參數後
便能取得伺服器上的重要檔案
修補建議
1. 使用Web伺服器內建的URL解析邏輯
2. 託管於CDN 、雲端硬碟或CMS裡
3. 針對每個檔案配置一組與檔案路徑匹配的唯一暗碼代號
4.
(1) 禁止任何含有路徑分隔符 ( 含編碼後 ) 的檔案參數
(2) 使用正則表示式 ( regex ) 檢查檔名或第三方函數檢查
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。