Skip to content

Commit ce1c814

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: update path-injection query to use new 'read-file' sink kind
1 parent c87c3e3 commit ce1c814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/Security/CWE/CWE-022/TaintedPath.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TaintedPathConfig extends TaintTracking::Configuration {
2929
override predicate isSink(DataFlow::Node sink) {
3030
sink.asExpr() = any(PathCreation p).getAnInput()
3131
or
32-
sinkNode(sink, "create-file")
32+
sinkNode(sink, ["create-file", "read-file"])
3333
}
3434

3535
override predicate isSanitizer(DataFlow::Node sanitizer) {

0 commit comments

Comments
 (0)