Skip to content

Commit

Permalink
Merge pull request from GHSA-prvh-9m4h-4m79
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Oct 6, 2020
1 parent 6ca9a0e commit a8109d4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion install/install.php
Expand Up @@ -598,10 +598,17 @@ function checkConfigFile() {
}
}

if (!isset($_POST["install"])) {
if (!isset($_SESSION['can_process_install']) || !isset($_POST["install"])) {
$_SESSION = [];

checkConfigFile();

// Add a flag that will be used to validate that installation can be processed.
// This flag is put here just after checking that DB config file does not exist yet.
// It is mandatory to validate that `Etape_4` to `Etape_6` are not used outside installation process
// to change GLPI base URL without even being authenticated.
$_SESSION['can_process_install'] = true;

header_html("Select your language");
choose_language();

Expand Down

0 comments on commit a8109d4

Please sign in to comment.