Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-13779

Permission set migration tool grants regular users heightened permissions

XMLWordPrintable

      function permission_set in phpbb\db\migration\tool can grant regular users administrative/moderative permissions when applying permissions set to group via migrations.
      Scenario:

      array('permission.permission_set', array('GLOBAL_MODERATORS', 'm_thanks', 'group', true)),

      Th problem is that GLOBAL_MODERATORS group has 2 roles assigned: ROLE_USER_FULL and ROLE_MOD_FULL. Due to this code the function selects the both assigned roles (including ROLE_USER_FULL) regardless of the role type and assigns them the m_ permission.
      This ends up in granting some of the regular users extra moderative permissions. In theory, assigning a_ permission set to the group will lead to granting regular users admin permissions silently.

            nicofuma nicofuma
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: