mirror of
https://github.com/github/codeql.git
synced 2026-03-06 15:49:08 +01:00
Java: add sanitizer to command injection query
This commit is contained in:
@@ -42,6 +42,8 @@ private class DefaultCommandInjectionSanitizer extends CommandInjectionSanitizer
|
||||
or
|
||||
this.getType() instanceof BoxedType
|
||||
or
|
||||
this.getType() instanceof NumberType
|
||||
or
|
||||
isSafeCommandArgument(this.asExpr())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user