Update CaptureModels.qll

This commit is contained in:
Tom Hvitved
2022-04-22 15:49:17 +02:00
parent bc6ee10583
commit 3edc72feb6
2 changed files with 6 additions and 6 deletions

View File

@@ -130,9 +130,9 @@ private class ThroughFlowConfig extends TaintTracking::Configuration {
DataFlow::Node node1, DataFlow::FlowState state1, DataFlow::Node node2,
DataFlow::FlowState state2
) {
exists(DataFlow::Content c |
DataFlowImplCommon::storeSet(node1, c, node2, _, _) and
isRelevantContent(c) and
exists(DataFlowImplCommon::TypedContent tc |
DataFlowImplCommon::store(node1, tc, node2, _) and
isRelevantContent(tc.getContent()) and
(state1 instanceof TaintRead or state1 instanceof TaintStore) and
state2 instanceof TaintStore
)