Skip to content

[csharp] need help with taint propagation #19911

Answered by michaelnebel
Hug0Vincent asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you very much for reporting this.
I suspect at least for some of the cases there are some issues with the Models as Data modelling of the library methods.
With the current modelling we have

Convert.FromBase64String(string) : Argument[0] -> ReturnValue.Element
Encoding.GetBytes(string) : Argument[0] -> ReturnValue
MemoryStream.MemoryStream(byte[]) : Argument[0] -> Argument[this]

It looks like the model for MemoryStream.MemoryStream(byte[]) is incorrect (it should be Argument[0].Element -> Argument[this] - this is also the case for the other overloads of the constructor). Also the model for Encoding.GetBytes looks incorrect as taint is propagated from the argument to the return value…

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@Hug0Vincent
Comment options

@michaelnebel
Comment options

@Hug0Vincent
Comment options

Comment options

You must be logged in to vote
4 replies
@Hug0Vincent
Comment options

@michaelnebel
Comment options

@michaelnebel
Comment options

@Hug0Vincent
Comment options

Comment options

You must be logged in to vote
1 reply
@Hug0Vincent
Comment options

Answer selected by Hug0Vincent
Comment options

You must be logged in to vote
1 reply
@Hug0Vincent
Comment options

Comment options

You must be logged in to vote
1 reply
@Hug0Vincent
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