Lucene search

K
huntrVikychoiC24FB15C-3C84-45C8-AF04-A660F8DA388F
HistorySep 10, 2021 - 8:08 a.m.

in hestiacp/hestiacp

2021-09-1008:08:11
vikychoi
www.huntr.dev
23

0.003 Low

EPSS

Percentile

66.0%

✍️ Description

$_SESSION["token"] is a csrf token which is a md5 hash generated based on system time.

It has been discovered that $_SESSION["token"] compares with $_GET["token"] using comparison operator != in file index.php. This might cause unexpected behavior due to type juggling.

It is possible to bypass the CSRF token by using magic hash attack, and leveraged to perform CSRF attack.

Remediation

Use !== instead.

0.003 Low

EPSS

Percentile

66.0%

Related for C24FB15C-3C84-45C8-AF04-A660F8DA388F