Rapid7 Vulnerability & Exploit Database

HP OpenView Network Node Manager ov.dll _OVBuildPath Buffer Overflow

Back to Search

HP OpenView Network Node Manager ov.dll _OVBuildPath Buffer Overflow

Disclosed
11/01/2011
Created
05/30/2018

Description

This module exploits a stack buffer overflow in HP OpenView Network Node Manager 7.53 prior to NNM_01213 without the SSRT100649 hotfix. By specifying a long 'textFile' argument when calling the 'webappmon.exe' CGI program, an attacker can cause a stack-based buffer overflow and execute arbitrary code. The vulnerable code is within the "_OVBuildPath" function within "ov.dll". There are no stack cookies, so exploitation is achieved by overwriting the saved return address. The vulnerability is due to the use of the function "_OVConcatPath" which finally uses "strcat" in an insecure way. User controlled data is concatenated to a string which contains the OpenView installation path. To achieve reliable exploitation a directory traversal in OpenView5.exe (OSVDB 44359) is being used to retrieve OpenView logs and disclose the installation path. If the installation path cannot be guessed the default installation path is used.

Author(s)

  • Anyway <Aniway.Anyway@gmail.com>
  • juan vazquez <juan.vazquez@metasploit.com>
  • sinn3r <sinn3r@metasploit.com>

Platform

Windows

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/http/hp_nnm_ovbuildpath_textfile
msf exploit(hp_nnm_ovbuildpath_textfile) > show targets
    ...targets...
msf exploit(hp_nnm_ovbuildpath_textfile) > set TARGET < target-id >
msf exploit(hp_nnm_ovbuildpath_textfile) > show options
    ...show and set options...
msf exploit(hp_nnm_ovbuildpath_textfile) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;