Fixed vulnerability in some extensions TICKETS #3554
This commit is contained in:
parent
e97aff1cc4
commit
aec47d20ef
|
@ -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'));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue