mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
JS: add "verify" as an Authorization call word
This commit is contained in:
@@ -143,7 +143,7 @@ class AuthorizationCall extends SensitiveAction, DataFlow::CallNode {
|
|||||||
exists(string s | s = astNode.getCalleeName() |
|
exists(string s | s = astNode.getCalleeName() |
|
||||||
// name contains `login` or `auth`, but not as part of `loginfo` or `unauth`;
|
// name contains `login` or `auth`, but not as part of `loginfo` or `unauth`;
|
||||||
// also exclude `author`
|
// also exclude `author`
|
||||||
s.regexpMatch("(?i).*(login(?!fo)|(?<!un)auth(?!or\\b)).*") and
|
s.regexpMatch("(?i).*(login(?!fo)|(?<!un)auth(?!or\\b)|verify).*") and
|
||||||
// but it does not start with `get` or `set`
|
// but it does not start with `get` or `set`
|
||||||
not s.regexpMatch("(?i)(get|set).*")
|
not s.regexpMatch("(?i)(get|set).*")
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user