Restrict route by IP
It provides an interface to manage page restriction by IP address.
The website fails to block access based on internet addresses for certain dynamic web pages. A visitor could see hidden pages and make changes to them.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youA site is affected if it uses this module and has any dynamic pages.
- 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 Restrict route by IP to 2.0.1 or 1.3.1, whichever branch you are on.
For developers: what the fix changed
The fix passes the current route collection to the service method fetching restricted routes and alters the route subscriber priority to ensure dynamic routes are properly processed.
Also in this release The release bumps core version requirements, improves type hinting, fixes an issue adding new configuration entities and filters HTML tags from IP and parameter fields.
composer.json+1 −1restrict_route_by_ip.info.yml+1 −1src/Controller/RestrictRouteListBuilder.php+11 −2src/Entity/RestrictRouteByIp.php+50 −5src/Entity/RestrictRouteInterface.php+6 −7src/Form/RestrictRouteForm.php+0 −14src/Routing/RouteSubscriber.php+11 −1 fixsrc/Service/RestrictIpInterface.php+11 −3 fixsrc/Service/RestrictIpService.php+19 −11