[JavaScript] Can I find out all the intermediate nodes on the paths from Source
to Sink
through CodeQL?
#16659
-
I am currently using CodeQL to achieve the following goals: Analyze the data flow of the JavaScript code and extract the data dependencies of all Here is my query:
However, I found that I didn't find all the string constants. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thank you for the question. Do you have an example JavaScrip snippet where you would expect to find a result but currently don't? |
Beta Was this translation helpful? Give feedback.
I'm not sure I quite get what you're trying to do (or why).
But I still think I can help.
The problem (I think) is that the dataflow configuration tracks back to the
before_execs
, but not its properties.If you add
isAdditionalTaintStep
like I've done below, then you'll track taint from any property-write into the object that's being written to.This is not a pretty solution, and it might cause a lot of imprecision, but it could get you started.