Fixed vulnerability in some extensions TICKETS #3554

This commit is contained in:
fermin831 2016-04-25 18:34:32 +02:00
parent e97aff1cc4
commit aec47d20ef
2 changed files with 18 additions and 0 deletions

View File

@ -54,6 +54,15 @@ function api_execute($url, $ip, $pandora_url, $apipass, $user, $password, $op, $
function extension_api_checker() {
global $config;
check_login ();
if (! check_acl ($config['id_user'], 0, "PM")) {
db_pandora_audit("ACL Violation",
"Trying to access Profile Management");
require ("general/noaccess.php");
return;
}
$url = io_safe_output(get_parameter('url', ''));
$ip = io_safe_output(get_parameter('ip', '127.0.0.1'));

View File

@ -256,6 +256,15 @@ function main_net_tools () {
function godmode_net_tools() {
global $config;
check_config ();
if (! check_acl ($config['id_user'], 0, "PM")) {
db_pandora_audit("ACL Violation",
"Trying to access Profile Management");
require ("general/noaccess.php");
return;
}
ui_print_page_header (__('Config Network Tools'));
$update_traceroute = (bool)get_parameter('update_traceroute', 0);