fix vulnerability with http domain filter checks
- requires the domain uuid and host request domain uuid match if http_domain_filter is enabled
This commit is contained in:
parent
e72094543a
commit
1fce0ea1a8
|
|
@ -173,6 +173,11 @@
|
|||
$database = new database;
|
||||
$domain_uuid = $database->select($sql, $parameters, 'column');
|
||||
unset($sql, $parameters);
|
||||
|
||||
// if the session domain doesn't match the host domain, don't allow provisioning to continue
|
||||
if ($_SESSION['domain_uuid'] != $domain_uuid) {
|
||||
http_error('404');
|
||||
}
|
||||
}
|
||||
|
||||
//get the default settings
|
||||
|
|
|
|||
Loading…
Reference in New Issue