[C] Taint propagation and isSanitizer() - interproc and ptr #131
Replies
|
That's a known issue with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
That's a known issue with |
Hi *,
I am struggling with a TaintTracking query using the
isSanitizer()to detect when a tainted data is used in a comparison operation.I have the following code:
I wrote the query to find the flow from source (copy_from_user) to sink (mysink) and it works. Actually I am struggling with the
isSanitizer()because I want to filter out those expressions where a tainted node is used in a comparison op, I managed to achieve it forf1()but not forf2()The query looks like the following:
however, this version is not working for
f2().I used
hasPartialFlow()to debug tainting propagation and I noticed that seems the taint does not reach to expressionif(*p < 0 ) *p = 0;inget_check_data().To my understanding, that expression should be a tainted node because it is an access to tainted data. is that correct? what am I missing?
thanks
ps: thanks for bringing us codeQL