Merge pull request #12081 from jcogs33/jcogs33/update-some-Files-sinks

Java: update `createTempDirectory` and `copy` "create-file" sinks
This commit is contained in:
Jami
2023-02-14 10:53:17 -05:00
committed by GitHub
5 changed files with 12 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ class TaintedPathConfig extends TaintTracking::Configuration {
override predicate isSink(DataFlow::Node sink) {
sink.asExpr() = any(PathCreation p).getAnInput()
or
sinkNode(sink, "create-file")
sinkNode(sink, ["create-file", "read-file"])
}
override predicate isSanitizer(DataFlow::Node sanitizer) {