[csharp] need help with taint propagation #19911
Replies: 5 comments 9 replies
-
Using the same query on a different Codeql database yield the same problem on another method: And again there is a summary step for this method here. So the problem might be somewhere else, I don't understand |
Beta Was this translation helpful? Give feedback.
-
I think that in my first example the difference is in the way the return value is tainted. For |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for reporting this.
It looks like the model for I will look into this. |
Beta Was this translation helpful? Give feedback.
-
@Hug0Vincent : Will see if I can fix at least some of the modelling and get back to you. |
Beta Was this translation helpful? Give feedback.
-
Related PR #19940 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I don't understand why my taint is not propagating. I have 3 test cases that look similar, but it only works for one. Here is my C# code:
In the first scenario, the taint halts at the
FromBase64String
call, whereas in the third scenario, it persists until theDeserialize
call, which aligns with my expectations. This observation was confirmed through a partial dataflow query:Based on this it should propagate the taint. What am I missing here ?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions