We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a27966 commit 2f5c7a1Copy full SHA for 2f5c7a1
web/login/index.php
@@ -126,7 +126,7 @@
126
}
127
128
// Generate CSRF token
129
-$_SESSION['token'] = md5(uniqid(mt_rand(), true));
+$_SESSION['token'] = bin2hex(openssl_random_pseudo_bytes(16)); // generate 32-character cryptographically secure token
130
131
require_once($_SERVER['DOCUMENT_ROOT'].'/inc/i18n/'.$_SESSION['language'].'.php');
132
require_once('../templates/header.html');
0 commit comments