Skip to content

3.0.15

Choose a tag to compare

@engram-design engram-design released this 10 Sep 12:51
· 22 commits to craft-5 since this release

Fixed

  • Fix a Twig sandbox escape where Illuminate Collection/Enumerable methods such as map, each, and filter accepted PHP string callables (arbitrary function invocation).
  • Remove collect from the default sandboxed Twig function allow-list, and stop allowing unrestricted methods on broad Illuminate Enumerable by class family.
  • Keep ElementCollection allowed for legitimate [0] / count access, while denying callable-accepting collection methods (map, each, filter, first, …).
  • Honour Craft’s AllowableInSandbox deny-by-default for Element objects instead of falling through to a blanket class-family method allow (still permitting __toString for printing elements).
  • Deny Yii Component behaviour APIs (attachBehavior, etc.) on class-family-allowed objects.