Access Filter
The module does not properly restrict access when certain text matching rules are used. Anyone without logging in could bypass the restrictions to view hidden pages. They could also change or add information on the site.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youAny site using this module.
- 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 Access Filter to 2.1.1.
For developers: what the fix changed
Swaps the arguments to preg_match in ArrayConditionBase.php to ensure the regular expression pattern and subject are evaluated in the correct order.
Also in this release Fixes PHPCS errors, reorders use statements, and performs minor code refactoring.
src/AccessFilterLegacyMiddleware.php+5 −1src/AccessFilterListBuilder.php+2 −2src/AccessFilterMiddleware.php+1 −1src/Entity/Filter.php+3 −3src/Form/EditForm.php+4 −2src/Plugin/AccessFilter/Condition/AndCondition.php+4 −0src/Plugin/AccessFilter/Condition/ArrayConditionBase.php+1 −1 fixsrc/Plugin/AccessFilter/Condition/ConditionBase.php+1 −1src/Plugin/AccessFilter/Condition/OrCondition.php+4 −0src/Plugin/AccessFilter/Condition/PathCondition.php+1 −1src/Plugin/AccessFilter/Condition/ServerEnvironmentCondition.php+4 −0src/Plugin/AccessFilter/Rule/IpRule.php+2 −2