Skip to content

How to make the output of a TaintTracking::Configuration::hasFlowPath as the input of another TaintTracking::Configuration:hasFlowPath? #12778

Answered by erik-krogh
Leepay asked this question in Q&A
Discussion options

You must be logged in to vote

As @MathiasVP said, you cannot chain DataFlow/TaintTracking configurations like that in JS, we do some other things instead.

In this case I think you want to use our callgraph instead of your FunctionTracingConfiguration.
The getACallee predicate on DataFlow::CallNode is useful for that.

You can try this predicate, I think it'll be useful for your situation:

DataFlow::CallNode getACall(DataFlow::FunctionNode func) {
  result.getACallee() = func.getFunction()
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Leepay
Comment options

Answer selected by Leepay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants