Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6cfca3

Browse files
author
Esben Sparre Andreasen
committed
JS: add "verify" as an Authorization call word
1 parent 237f1af commit c6cfca3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

javascript/ql/src/semmle/javascript/security/SensitiveActions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class AuthorizationCall extends SensitiveAction, DataFlow::CallNode {
143143
exists(string s | s = astNode.getCalleeName() |
144144
// name contains `login` or `auth`, but not as part of `loginfo` or `unauth`;
145145
// also exclude `author`
146-
s.regexpMatch("(?i).*(login(?!fo)|(?<!un)auth(?!or\\b)).*") and
146+
s.regexpMatch("(?i).*(login(?!fo)|(?<!un)auth(?!or\\b)|verify).*") and
147147
// but it does not start with `get` or `set`
148148
not s.regexpMatch("(?i)(get|set).*")
149149
)

0 commit comments

Comments
 (0)