Skip to content

How to avoid deserialization of untrusted data attacks with Hyperion serializer? #5329

Answered by Arkatufus
jonnydee asked this question in Q&A
Discussion options

You must be logged in to vote

As of now, the return value of IKnownTypesProvider.GetKnownType() is the one being passed to the underlying Hyperion serializer, so it can be considered as immutable after the serializer starts.

Expanding IKnownTypesProvider with another method that returns a list of allowed/disallowed types is a viable solution, but it will break compatibility with previous versions of Akka; a safer solution would be to provide another interface to pass in the allowed/disallowed types. It shouldn't matter coding wise, since you can use one class that implements both interface. This implementing class can then be passed in in the HOCON settings just like the known types provider setting.

Adding a toggle i…

Replies: 3 comments 16 replies

Comment options

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

Comment options

You must be logged in to vote
10 replies
@to11mtm
Comment options

@jonnydee
Comment options

@Aaronontheweb
Comment options

@jonnydee
Comment options

@Aaronontheweb
Comment options

Answer selected by Aaronontheweb
Comment options

You must be logged in to vote
5 replies
@Aaronontheweb
Comment options

@Aaronontheweb
Comment options

@Aaronontheweb
Comment options

@jonnydee
Comment options

@Aaronontheweb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
4 participants