diff --git a/html/class_passwordRecovery.inc b/html/class_passwordRecovery.inc index 17823472f6926892efe3fb70eb269dfe1514afa7..53d0f6d4169e40f26d61eb7f05d5b5ff02a8883b 100644 --- a/html/class_passwordRecovery.inc +++ b/html/class_passwordRecovery.inc @@ -104,6 +104,8 @@ class standAlonePage { load_plist(); $ssl = $this->checkForSSL(); + + static::securityHeaders(); } } @@ -221,6 +223,13 @@ class standAlonePage { return $params; } + static function securityHeaders() + { + header('X-XSS-Protection: 1; mode=block'); + header('X-Content-Type-Options: nosniff'); + header('X-Frame-Options: deny'); + } + static function generateRandomHash() { /* Generate a very long random value */ diff --git a/html/index.php b/html/index.php index 85df945a3de3917e32a3a11888c2a78a97066b70..88f34615731f09643c5151fb70e1ec7e236280b4 100644 --- a/html/index.php +++ b/html/index.php @@ -29,6 +29,7 @@ require_once ("class_logging.inc"); header('Content-type: text/html; charset=UTF-8'); header('X-XSS-Protection: 1; mode=block'); header('X-Content-Type-Options: nosniff'); +header('X-Frame-Options: deny'); /* Display the login page and exit() */ function displayLogin() diff --git a/html/main.php b/html/main.php index 27cb051648ed22d0fda30034b6aa217bce46ec14..4414c77a3809fb6931005a0cb3919d2c81150200 100644 --- a/html/main.php +++ b/html/main.php @@ -31,6 +31,7 @@ require_once ("variables.inc"); header('Content-type: text/html; charset=UTF-8'); header('X-XSS-Protection: 1; mode=block'); header('X-Content-Type-Options: nosniff'); +header('X-Frame-Options: deny'); /* Set the text domain as 'fusiondirectory' */ $domain = 'fusiondirectory'; diff --git a/html/setup.php b/html/setup.php index f9763e431d17adf1acefad820961e3caa0583a9c..c8fcc3252e67417ee03df75542ec5a8537f9a0d1 100644 --- a/html/setup.php +++ b/html/setup.php @@ -39,6 +39,7 @@ require_once("../setup/class_setupStepFinish.inc"); header('Content-type: text/html; charset=UTF-8'); header('X-XSS-Protection: 1; mode=block'); header('X-Content-Type-Options: nosniff'); +header('X-Frame-Options: deny'); /* Set cookie lifetime to one day (The parameter is in seconds ) */ session_set_cookie_params(24 * 60 * 60);