聖心聯合診所 未限制上傳類型,導致 RCE - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2018-00913
  •  發信 Vendor: 宜蘭聖心聯合診所
  • Title: 聖心聯合診所 未限制上傳類型,導致 RCE
  • Introduction: 未限制上傳類型,導致 RCE

處理狀態

目前狀態

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

處理歷程

  • 2018/06/24 18:55:05 : 新提交 (由 meowmeowmeow 更新此狀態)
  • 2018/06/24 18:58:53 : 新提交 (由 meowmeowmeow 更新此狀態)
  • 2018/06/24 22:07:09 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/06/28 00:09:04 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/06/28 00:09:04 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/08/24 03:00:01 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2018-00913
  • 通報者:racterub (meowmeowmeow)
  • 風險:高
  • 類型:遠端命令執行 (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://www.shinsin.tw/news_dec.php?id=168

敘述

此漏洞導出相當多的資安問題
Refer to ZD-2018-00548

SQL injection

http://www.shinsin.tw/admin/news_edit.php?id=168
具有 SQL injection 漏洞
圖片

任意檔案上傳

在進入 admin 頁面之後,有提供上傳檔案的功能,但是未過濾檔案類型,所以可以插入 webshell
(e.g. http://www.shinsin.tw/upload/B94876051.php) (測試用,在回報會刪除)

疑似遭入侵

ZD-2018-00548 提供了相關資訊
以下是駭客所有的 webshell
http://www.shinsin.tw/upload/1/Wells_2016.zip
https://gist.github.com/racterub/9a3f28ec6ca9645110948cf593452d6f (綜合所有 webshell)

擷圖

留言討論

聯絡組織

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