mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Minor security problem, discovered internally. Requires the user to know the activation key which is not normally possible when admin activation is turned on. #41625
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9498 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -56,6 +56,17 @@ class ucp_activate
|
||||
trigger_error('WRONG_ACTIVATION');
|
||||
}
|
||||
|
||||
// Do not allow activating by non administrators when admin activation is on
|
||||
// Only activation type the user should be able to do is INACTIVE_REMIND
|
||||
if ($user_row['user_inactive_reason'] != INACTIVE_REMIND && $config['require_activation'] == USER_ACTIVATION_ADMIN && !$auth->acl_get('a_user'))
|
||||
{
|
||||
if (!$user->data['is_registered'])
|
||||
{
|
||||
login_box('', $user->lang['NO_AUTH_OPERATION']);
|
||||
}
|
||||
trigger_error('NO_AUTH_OPERATION');
|
||||
}
|
||||
|
||||
$update_password = ($user_row['user_newpasswd']) ? true : false;
|
||||
|
||||
if ($update_password)
|
||||
|
Reference in New Issue
Block a user