Merge pull request #14012 from knewbury01/knewbury01/add-sanitizer-command-query

Java: add sanitizer to command injection query
This commit is contained in:
Anders Schack-Mulligen
2023-08-22 08:40:49 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* Added new sanitizer to Java command injection model

View File

@@ -42,6 +42,8 @@ private class DefaultCommandInjectionSanitizer extends CommandInjectionSanitizer
or
this.getType() instanceof BoxedType
or
this.getType() instanceof NumberType
or
isSafeCommandArgument(this.asExpr())
}
}