Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2019-00264
- Vendor: 歐格電子工業股份有限公司
- Title: 歐格電子工業股份有限公司,發現任意檔案下載漏洞。
- Introduction: 任意檔案下載漏洞
處理狀態
目前狀態
公開
Last Update : 2019/05/20
-
新提交
-
已審核
-
已通報
-
已修補
-
未複測
-
公開
處理歷程
- 2019/03/20 02:02:02 : 新提交 (由 MksYi 更新此狀態)
- 2019/03/20 22:42:19 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2019/03/22 11:51:45 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2019/03/22 11:51:45 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2019/03/22 11:51:45 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2019/03/25 16:04:51 : 修補中 (由 組織帳號 更新此狀態)
- 2019/05/13 09:24:38 : 已修補 (由 組織帳號 更新此狀態)
- 2019/05/20 03:00:09 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2019-00264
- 通報者:MksYi (MksYi)
- 風險:中
- 類型:任意檔案下載 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
mail.ahoku.com/chinese/ir/down.php?hDFile=
敘述
-
下載參數
hDFile並未針對使用者輸入進行過濾,同時尚未限制同資料夾存取。 -
由於無法下載到
/etc/passwd或/boot.ini,同時有 IPS 設備保護,於是循線追循是否可以下載到敏感資料。mail.ahoku.com/chinese/ir/down.php?hDFile=../../index.php mail.ahoku.com/chinese/ir/down.php?hDFile=../../include/php_script/common.php -
在路徑位置: include/php_script/common.php 發現疑似資料庫敏感資料。
修補建議
1. 驗證使用者輸入資訊,過濾特定字元。
2. 下載機制可以限制白名單,僅能讀取某一類型檔案。
3. 可下載的路徑鎖定在特定目錄,並過濾 `../` 等字元。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。