mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-01-29 18:47:44 +01:00
admin.php: fix authentication bypass vulnerability
This commit is contained in:
parent
272ab3a46c
commit
c019221848
@ -53,7 +53,7 @@ if (isset ($_POST['action']) && (strcmp ($_POST['action'], 'logout') == 0))
|
||||
/* Check classic admin password authentification. */
|
||||
if (isset ($_POST['admin_password']) && empty($cfg['admin_http_auth_user']))
|
||||
{
|
||||
if (strcmp ($cfg['admin_password'], $_POST['admin_password']) == 0)
|
||||
if ($cfg['admin_password'] === $_POST['admin_password'])
|
||||
$_SESSION['admin_auth'] = true;
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user