mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
add "valid" to the AdHocWhitelistCheckSanitizer
This commit is contained in:
@@ -778,7 +778,8 @@ module TaintTracking {
|
||||
*/
|
||||
class AdHocWhitelistCheckSanitizer extends SanitizerGuardNode, DataFlow::CallNode {
|
||||
AdHocWhitelistCheckSanitizer() {
|
||||
getCalleeName().regexpMatch("(?i).*((?<!un)safe|whitelist|allow|(?<!un)auth(?!or\\b)).*") and
|
||||
getCalleeName()
|
||||
.regexpMatch("(?i).*((?<!un)safe|whitelist|valid|allow|(?<!un)auth(?!or\\b)).*") and
|
||||
getNumArgument() = 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user