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 {
|
class AdHocWhitelistCheckSanitizer extends SanitizerGuardNode, DataFlow::CallNode {
|
||||||
AdHocWhitelistCheckSanitizer() {
|
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
|
getNumArgument() = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user