Skip to content

Commit 81f3bcd

Browse files
authored
Don't require a PathCreation for every tainted-path sink
1 parent c95f17f commit 81f3bcd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ class TaintedPathConfig extends TaintTracking::Configuration {
4949
}
5050
}
5151

52-
from DataFlow::PathNode source, DataFlow::PathNode sink, PathCreation p, TaintedPathConfig conf
53-
where
54-
sink.getNode().asExpr() = p.getAnInput() and
55-
conf.hasFlowPath(source, sink)
56-
select p, source, sink, "$@ flows to here and is used in a path.", source.getNode(),
52+
from DataFlow::PathNode source, DataFlow::PathNode sink, TaintedPathConfig conf
53+
where conf.hasFlowPath(source, sink)
54+
select sink, source, sink, "$@ flows to here and is used in a path.", source.getNode(),
5755
"User-provided value"

0 commit comments

Comments
 (0)