Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00192
- Vendor: 台灣電力公司
- Title: [Bounty] 台灣電力公司 任意系統檔案下載
- Introduction: 任意系統檔案下載
處理狀態
目前狀態
公開
Last Update : 2022/05/14
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2022/03/08 21:45:17 : 新提交 (由 ccoozzyy 更新此狀態)
- 2022/03/08 21:46:16 : 新提交 (由 ccoozzyy 更新此狀態)
- 2022/03/10 01:01:02 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/10 21:22:32 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/10 21:23:55 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/10 21:30:01 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/10 21:30:51 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/04/14 15:39:58 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/04/27 15:58:59 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/05/06 16:57:51 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/05/09 01:56:38 : 未修補完成 (由 ccoozzyy 更新此狀態)
- 2022/05/10 10:33:59 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/05/11 00:01:40 : 確認已修補 (由 ccoozzyy 更新此狀態)
- 2022/05/14 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00192
- 通報者:ccoozzyy (ccoozzyy)
- 風險:高
- 類型:任意檔案下載 (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://otpms.taipower.com.tw/Stationmanager/api/db/DownloadFiles/%E4%BD%BF%E7%94%A8%E8%AA%AA%E6%98%8E?FileName=
https://otpms.taipower.com.tw/Stationmanager/api/my/DownloadTaipowerFiles/1?ID=1&FileName=
https://otpms.taipower.com.tw/Stationmanager/api/my/DownloadTaipowerFiles/1?ID=1&FileName=
敘述
- 在不需登入下,透過下列 URL,在 FileName 參數輸入下載檔案的絕對位置,即可下載系統上的任意檔案,例如 web.config 檔。
https://otpms.taipower.com.tw/Stationmanager/api/db/DownloadFiles/%E4%BD%BF%E7%94%A8%E8%AA%AA%E6%98%8E?FileName=C:\\inetpub\\wwwroot\\StationManager\\web.config
修補建議
1. 重要功能需加上權限檢查。
2. 限制檔案下載的位置、目錄及檔案類型等。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。