mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Java: update path-injection query to use new 'read-file' sink kind
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user