Add implicit reads for FlowState sinks and steps

This commit is contained in:
Tony Torralba
2022-09-08 17:19:52 +02:00
parent d5f101d7e6
commit 1b87167d96
2 changed files with 10 additions and 1 deletions

View File

@@ -172,7 +172,12 @@ abstract class Configuration extends DataFlow::Configuration {
}
override predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c) {
(this.isSink(node) or this.isAdditionalTaintStep(node, _)) and
(
this.isSink(node) or
this.isSink(node, _) or
this.isAdditionalTaintStep(node, _) or
this.isAdditionalTaintStep(node, _, _, _)
) and
defaultImplicitTaintRead(node, c)
}