Does using SealedObjects in Java secure against serialization vunerability?
Clash Royale CLAN TAG#URR8PPP
Does using SealedObjects in Java secure against serialization vunerability?
I understand that Java serialization poses a security risk. Would sealing objects in Java mitigate against this risk? If so, any reason not to use object sealing instead of insecure serialization?
1 Answer
1
No, not on its own. The serialised stream could contain any object, not just javax.crypto.SealedObject
. You'd still need the new "whitelist" feature.
javax.crypto.SealedObject
A much better approach is to secure the entire stream. And then use a different protocol to Java Serialisation without all the magic. Or where possible, just pass a token instead of the data itself.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.