You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!empty($return) && parse_url($_SERVER['HTTP_HOST'], PHP_URL_HOST) == parse_url($return, PHP_URL_HOST))
It compares the host from the return argument & the http host host :)
(parse_url for $_SERVER because it contains ports if not running on default 80 / 443)
The text was updated successfully, but these errors were encountered:
In loginprocess is a massive security issue. You can "post" EVERY url to return.
https://github.com/warhawk3407/bgpanel/blob/master/admin/loginprocess.php#L111
https://github.com/warhawk3407/bgpanel/blob/master/admin/loginprocess.php#L109
My fix for it:
It compares the host from the return argument & the http host host :)
(parse_url for $_SERVER because it contains ports if not running on default 80 / 443)
The text was updated successfully, but these errors were encountered: