Entity Access by Role Field
The module does not properly check access rights when the role restrictions are changed. An ordinary account on the site could remove restrictions or lock out other users because changing the settings did not require a specific access right. This could allow them to view hidden data or change information on the site.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youA site is affected if a user has a role that allows them to edit the affected pieces of content.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate Entity Access by Role Field to 2.0.7.
For developers: what the fix changed
The fix introduces a new permission, `edit entity_access_by_role_field values`, in `entity_access_by_role_field.permissions.yml` and enforces it by implementing `hook_entity_field_access()` in `entity_access_by_role_field.module` to restrict edit access to the role access field.
Also in this release The release also includes caching improvements, bug fixes for unpublished entities, and new test coverage.
README.md+24 −0entity_access_by_role_field.install+22 −3 fixentity_access_by_role_field.module+89 −68 fixentity_access_by_role_field.permissions.yml+3 −0 fixentity_access_by_role_field.services.yml+0 −7src/Helper/Constants.php+2 −0 fixsrc/Plugin/Field/FieldType/EntityAccessRoleItem.php+9 −1src/Plugin/Field/FieldWidget/DefaultEntityAccessRoleWidget.php+1 −1src/Routing/RouteSubscriber.php+6 −0