[csharp] taint not propagated through overridden virtual methods #20260
Unanswered
Hug0Vincent
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi. Would you mind posting the query that you used as well? Thanks |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a base class with a virtual method and a child type that override the virtual method. However my taint stop in the base class it does not flow to the overridden method. Is it a normal behavior ?
Here is an example, the partial dataflow start from

this
in the methodMethod
fromDerivedHandler
I then added this taint step:
And it works:

I've tried with both
InstanceParameterNode
and regular parameter and the result is the same. My additional taint step is not very cleaned so I was wondering if this is normal and how to solve this ?Here is the code if needed:
While pasting this I also realize that if there are 2 derived class my additional step might return overridden method from the other class.
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions