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:
Jonathan Rainier 2023-02-22 20:02:25 -05:00
parent e72094543a
commit 1fce0ea1a8
No known key found for this signature in database
GPG Key ID: 704BA98A5048018E
1 changed files with 5 additions and 0 deletions

View File

@ -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