Skip to content

Commit

Permalink
Prevent magic bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Feb 8, 2022
1 parent ac42fe4 commit 7c6880e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions twig/SecurityPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ final class SecurityPolicy implements SecurityPolicyInterface
* @var array List of forbidden methods.
*/
protected $blockedMethods = [
// Prevent magic bypass
'__call',

// Prevent manipulating Twig itself
'getTwig',

Expand Down

0 comments on commit 7c6880e

Please sign in to comment.