Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions rust/ql/src/queries/summary/TaintReach.qll
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ private module TaintReachConfig implements DataFlow::ConfigSig {
predicate isSource(DataFlow::Node node) { node instanceof ActiveThreatModelSource }

predicate isSink(DataFlow::Node node) { any() }

predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c) {
// flow out from reference content at the sink.
isSink(node) and
c.getAReadContent() instanceof DataFlow::ReferenceContent
}
}

private module TaintReachFlow = TaintTracking::Global<TaintReachConfig>;
Expand Down