mirror of
https://github.com/nextcloud/server.git
synced 2026-03-12 13:44:53 -04:00
Security Update: session fixation
Previous version is vulnerable to session fixation attack in some situations, guessing non-apache-module-php5 environment. Regeneration of session id should be done here.
This commit is contained in:
parent
f0da7b20c1
commit
068688063e
1 changed files with 1 additions and 0 deletions
|
|
@ -157,6 +157,7 @@ class Session implements Emitter, \OCP\IUserSession {
|
|||
if($user !== false) {
|
||||
if (!is_null($user)) {
|
||||
if ($user->isEnabled()) {
|
||||
session_regenerate_id(true);
|
||||
$this->setUser($user);
|
||||
$this->setLoginname($uid);
|
||||
$this->manager->emit('\OC\User', 'postLogin', array($user, $password));
|
||||
|
|
|
|||
Loading…
Reference in a new issue