Skip to content

Commit

Permalink
feat: exclude hugo framework safeURL, safeHTML keyword from squirrell…
Browse files Browse the repository at this point in the history
…y true positives

Signed-off-by: sebastien.heurtematte <[email protected]>
  • Loading branch information
heurtematte committed Apr 8, 2024
1 parent 40ff09e commit a84fcd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion njsscan/rules/pattern_matcher/template_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
message: The Squirrelly.js template has an unescaped variable. Untrusted user input
passed to this variable results in Cross Site Scripting (XSS)
type: Regex
pattern: '{{.+\|.*safe.*}}'
pattern: '{{(?!.*(?:safeURL|safeHTML|safeCSS|safeJS|safeJSStr|safeHTMLAttr)).*\|.*safe.*}}'
severity: ERROR
input_case: exact
metadata:
Expand Down

0 comments on commit a84fcd6

Please sign in to comment.