You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran the official query client-side cross-site scripting on this example, and it turned out that CodeQl failed to track the data flow through props.p2 when it is a function passed via a JSX attribute, in contrast to its successful detection in the case of props.p1.
Is this an inherent limitation, a bug, or a case of incorrect usage?
The text was updated successfully, but these errors were encountered:
I've asked the relevant engineering team to take a look. Note that this may take a few days, depending on when people are back from their New Year's holiday.
On such a React property we're only tracking that the value might be tainted, we're not tracking what the value contains.
This is to prevent the analysis from blowing up in complexity/runtime, and to prevent possible false positives.
But, it might be an easy fix to improve the analysis. I'm looking into that.
Description of the issue
I'm facing an issue where CodeQL is failing to track data flow correctly when a function is passed through a JSX attribute. For example:
I ran the official query client-side cross-site scripting on this example, and it turned out that CodeQl failed to track the data flow through props.p2 when it is a function passed via a JSX attribute, in contrast to its successful detection in the case of props.p1.
Is this an inherent limitation, a bug, or a case of incorrect usage?
The text was updated successfully, but these errors were encountered: