From 4f3c509bdeff8188763c7ffef239f4eb4a94b320 Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 24 Feb 2022 17:33:13 +0100 Subject: [PATCH] Fix credential store ACL, only accces to PM or UM --- pandora_console/include/class/CredentialStore.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/class/CredentialStore.class.php b/pandora_console/include/class/CredentialStore.class.php index f6cd726749..82ab94ee97 100644 --- a/pandora_console/include/class/CredentialStore.class.php +++ b/pandora_console/include/class/CredentialStore.class.php @@ -158,7 +158,9 @@ class CredentialStore extends Wizard // Check access. check_login(); - if (! check_acl($config['id_user'], 0, 'AR')) { + if ((bool) check_acl($config['id_user'], 0, 'PM') === false + || (bool) check_acl($config['id_user'], 0, 'UM') === false + ) { db_pandora_audit( AUDIT_LOG_ACL_VIOLATION, 'Trying to access credential store'