Skip to content

Commit b088012

Browse files
committed
Fix h1 report 176116
Session fixation ---------------- The HackerOne user pavanw3b has reported that Revive Adserver wasn't properly invalidating the current session when setting a new password via the forgot password mechanism. That could allow attackers having access to the session ID to keep the authenticated session alive. CWE-ID: CWE-384 CVSSv3 Vector: CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C CVSSv3 Base Score: 5.9 CVSSv3 Temporal Score: 5.2
1 parent a51ee66 commit b088012

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/OA/Admin/PasswordRecovery.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ function handlePost($vars)
117117
if (empty($vars['newpassword']) || empty($vars['newpassword2']) || $vars['newpassword'] != $vars['newpassword2']) {
118118
$this->displayRecoveryResetForm($vars['id'], $GLOBALS['strNotSamePasswords']);
119119
} elseif ($this->_dal->checkRecoveryId($vars['id'])) {
120-
$userId = $this->_dal->saveNewPasswordAndLogin($vars['id'], $vars['newpassword']);
120+
$this->_dal->saveNewPasswordAndLogin($vars['id'], $vars['newpassword']);
121+
122+
phpAds_SessionRegenerateId();
121123
OX_Admin_Redirect::redirect();
122124
} else {
123125
$this->displayRecoveryRequestForm($GLOBALS['strPwdRecWrongId']);

0 commit comments

Comments
 (0)