Commerce License
An ordinary account on the site could change the access rights granted by their purchase to give themselves administrator privileges. They could also see data they should not have access to.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youAny site using this module where a user owns a purchase and has the access right to update it.
- 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 Commerce License to 3.1.1.
For developers: what the fix changed
The fix implements access control at the field level by introducing LicenseAccessControlHandler and defining restricted_fields in the License entity annotation to prevent users from modifying critical fields on their licences. It also adds LicenseAdminRouteSubscriber to restrict admin routes and updates LicensePermissionProvider to restrict create and update permissions.
commerce_license.services.yml+5 −0 fixsrc/Entity/License.php+6 −1 fixsrc/EventSubscriber/LicenseAdminRouteSubscriber.php+48 −0 fixsrc/LicenseAccessControlHandler.php+46 −0 fixsrc/LicensePermissionProvider.php+4 −0 fix