Java: Remove SensitiveLoggingQuery results that flow through a source.

This commit is contained in:
Anders Schack-Mulligen
2022-08-10 14:28:07 +02:00
parent 8c32758ae5
commit ecc15a1f95
2 changed files with 6 additions and 0 deletions

View File

@@ -28,4 +28,6 @@ class SensitiveLoggerConfiguration extends TaintTracking::Configuration {
override predicate isSanitizer(DataFlow::Node sanitizer) {
sanitizer.asExpr() instanceof LiveLiteral
}
override predicate isSanitizerIn(Node node) { isSource(node) }
}

View File

@@ -0,0 +1,4 @@
---
category: majorAnalysis
---
* The query `java/sensitive-log` has been improved to no longer report results that are effectively duplicates due to one source flowing to another source.