mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Merge pull request #750 from aschackmull/javascript/autoformat
Approved by xiemaisi
This commit is contained in:
@@ -17,11 +17,9 @@ from DifferentKindsComparison cmp, DataFlow::Node lSource, DataFlow::Node rSourc
|
||||
where
|
||||
lSource = cmp.getLSource() and
|
||||
rSource = cmp.getRSource() and
|
||||
not (
|
||||
// Standard names for the double submit cookie pattern (CSRF protection)
|
||||
exists(DataFlow::PropRead s | s = lSource or s = rSource |
|
||||
s.getPropertyName().regexpMatch("(?i).*(csrf|state|token).*")
|
||||
)
|
||||
// Standard names for the double submit cookie pattern (CSRF protection)
|
||||
not exists(DataFlow::PropRead s | s = lSource or s = rSource |
|
||||
s.getPropertyName().regexpMatch("(?i).*(csrf|state|token).*")
|
||||
)
|
||||
select cmp,
|
||||
"This comparison of $@ and $@ is a potential security risk since it is controlled by the user.",
|
||||
|
||||
Reference in New Issue
Block a user