ADVISORIES

Drupal Security Advisory

DRUPAL-CONTRIB-2024-046

Details

This module enables you to manage blocks from specific modules in the specific themes.

The module doesn't sufficiently check permissions under the scenario when a block is added using the form "/admin/structure/block/add/{plugin\_id}/{theme}" (route "block.admin\_add"). The attacker can add the block to the theme where they can't manage blocks.

This vulnerability is mitigated by the fact that an attacker must have a role with the permission "administer blocks provided by [provider]".

Affected packages

EcosystemPackageAffected versions
Packagist:https://packages.drupal.org/8drupal/block_permissions
From 1.0.0 before 1.2.0 (fixed in 1.2.0)

References