中華民國教育部 子網站 Remote Code Execution - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2018-01006
  •  發信 Vendor: TACERT台灣學術網路危機處理中心
  • Title: 中華民國教育部 子網站 Remote Code Execution
  • Introduction: RCE

處理狀態

目前狀態

公開
Last Update : 2018/11/20
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2018/07/21 14:26:01 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
  • 2018/07/21 21:44:27 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/07/23 11:35:57 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/07/23 11:35:57 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/07/23 11:35:57 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/09/10 13:45:40 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/11/20 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2018-01006
  • 通報者:morrow (<svg/onload=alert(1)>)
  • 風險:嚴重
  • 類型:遠端命令執行 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

http://dict.idioms.moe.edu.tw/cgi-bin/cydic/gsweb.cgi

敘述

1.從「文字版」地方進入,取得新的 ccd
圖片

  1. 參數 func=diccydicfunc.cydicdispatchpage 部分可替換成 pyhton 語法的指令
    圖片

  2. 使用 os.system('sleep 5'); 或 os.system('sleep 10'); 分別延遲五秒以及十秒,確認可以 RCE
    圖片

修補建議

建議傳遞參數時過濾非法或敏感字元

擷圖

留言討論

聯絡組織

 發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。
;