Merge branch 'ent-8610-vulnerabilidad-en-gestion-de-usuarios-perfiles' into 'develop'

Fix credential store ACL, only accces to PM or UM

See merge request artica/pandorafms!4719
This commit is contained in:
Daniel Rodriguez 2022-03-09 12:54:41 +00:00
commit 671dc5e923
1 changed files with 3 additions and 1 deletions

View File

@ -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'