Skip to content

Map Dataflow captures steps in-between #235

Answered by intrigus-lgtm
timoles asked this question in Q&A
Discussion options

You must be logged in to vote

Well, as I wrote in #160 the query was untested... (and written late at night just like this answer :P)

Looking back at it, I'm pretty sure the code as is would have never really worked.
At that time I assumed that the isBarrier method would somehow mark the barrier node (env) and all subsequent nodes (and calls on env) after the barrier as sanitized.

Anyway, I'm pinging @aschackmull and @aibaars . Maybe they can review the approach I'm suggesting now:

The new approach only traces new HashMap<>().
So it could be possible to miss cases where the hashmap is created by code that is not visible to CodeQL.

It is then checked in MapToDangerousFunctionConfiguration whether your dangerous functio…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by timoles
Comment options

You must be logged in to vote
1 reply
@intrigus-lgtm
Comment options

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