Simple password policy
The module does not properly check if a user is allowed to ask for a new password in all situations. Anyone without logging in could bypass these checks to request a password. This could allow them to view hidden data or change information on the site.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youA site is affected if it has been configured to not allow a password request.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this critical. Cyber Essentials expects a fix within 14 days. Do it this week.
Tell your developerUpdate Simple password policy to 1.1.5.
For developers: what the fix changed
The fix introduces a new access check `PasswordResetAccessCheck` and applies it to both the `user.pass` and `user.pass.http` routes in `RouteSubscriber::alterRoutes` to ensure the JSON password reset endpoint is also restricted when password resets are disabled.
Also in this release Added a post update hook to rebuild the router.
simple_password_policy.post_update.php+16 −0simple_password_policy.services.yml+7 −0 fixsrc/Access/PasswordResetAccessCheck.php+45 −0 fixsrc/Routing/RouteSubscriber.php+16 −14 fix