mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Patch session fixation vuln
Here's the documentation for that function: http://php.net/manual/en/function.session-regenerate-id.php And here's about session fixation: https://www.owasp.org/index.php/Session_fixation
This commit is contained in:
parent
f014e38dae
commit
c6393c8771
1 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,9 @@ if (isset($_POST['user']) && isset($_POST['password'])) {
|
||||||
else {
|
else {
|
||||||
$_SESSION['language'] = 'en';
|
$_SESSION['language'] = 'en';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Regenerate session id to prevent session fixation
|
||||||
|
session_regenerate_id();
|
||||||
|
|
||||||
// Redirect request to control panel interface
|
// Redirect request to control panel interface
|
||||||
if (!empty($_SESSION['request_uri'])) {
|
if (!empty($_SESSION['request_uri'])) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue