DRUPAL-CONTRIB-2024-046unknown
DRUPAL-CONTRIB-2024-046
The advisory, in context
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
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
drupal/block_permissions Packagist:https://packages.drupal.org/8
Ecosystem versions
From 1.0.0 before 1.2.0
Fixed in 1.2.0
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.2.0"
}
],
"type": "ECOSYSTEM",
"database_specific": {
"constraint": ">=1.0.0 <1.2.0"
}
}
],
"versions": []
}