Skip to content

Commit

Permalink
never allow {{ }} in user-input
Browse files Browse the repository at this point in the history
  • Loading branch information
d00p committed May 10, 2024
1 parent c07ff16 commit 1a5680d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Froxlor/UI/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ public static function cleanAll()
unset($value);

$antiXss = new AntiXSS();
$antiXss->addNeverAllowedRegex([
'{{(.*)}}' => ''
]);

// check $_GET
PhpHelper::cleanGlobal($_GET, $antiXss);
Expand Down

0 comments on commit 1a5680d

Please sign in to comment.