From 213e8e6d18552868c0cf20e250f2d6e6f3051886 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Thu, 16 Nov 2017 11:52:51 +0100 Subject: [PATCH 1/2] Fix Run performance tests checkbox in web analysis module updater - #1470 --- pandora_console/godmode/agentes/configurar_agente.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 39f3cbba5b..32cda5ffac 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -996,7 +996,7 @@ if ($update_module || $create_module) { $custom_string_2 = (string) get_parameter ('custom_string_2', $custom_string_2_default); $custom_string_3 = (string) get_parameter ('custom_string_3', $custom_string_3_default); - $custom_integer_2 = (int) get_parameter ('custom_integer_2', $custom_integer_2_default); + $custom_integer_2 = (int) get_parameter ('custom_integer_2', 0); // Get macros $macros = (string) get_parameter ('macros'); From eedd6407b5d8d7698529f178e1bcd9c70ddc7197 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Thu, 16 Nov 2017 12:11:07 +0100 Subject: [PATCH 2/2] Apply Safe input to ui_get_url_refresh function return - #1574 --- pandora_console/include/functions_ui.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index e76ba9399f..22af9f9df4 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -2300,6 +2300,8 @@ function ui_get_url_refresh ($params = false, $relative = true, $add_post = true } $url = htmlspecialchars ($url); + + $url = io_safe_input($url); if (! $relative) { return ui_get_full_url ($url);