Login History
The module does not properly check if a user has the right to view the login history report. An ordinary account on the site could see sensitive information about other users. They could not change or add any information.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youA site is affected if a user has the access right to view their own login history.
- 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 Login History to 2.0.1.
For developers: what the fix changed
The fix introduces a custom access checker in `src/Access/UserReportAccessCheck.php` and enforces it via `src/Routing/RouteSubscriber.php` to ensure users can only view their own login history report unless they have the 'view all login histories' permission.
Also in this release Removed deprecated Views configuration, fixed a typo in the settings permission name, and added restrict access flags to administrative permissions.
config/install/views.view.login_history.yml+0 −1login_history.permissions.yml+2 −0login_history.post_update.php+13 −0 fixlogin_history.routing.yml+2 −1 fixlogin_history.services.yml+10 −0 fixsrc/Access/UserReportAccessCheck.php+48 −0 fixsrc/Routing/RouteSubscriber.php+45 −0 fix