I would hate to see serialization go completely. It has its uses. Maybe Java should copy the attributes that the C# data contract serializer uses to mark the subset of classes that may appear in serialized form. It coukd be retrofitted and would be a less drastic change at the same time.
Oracle plans to dump risky Java serialization
11–20 of 157 posts
Re: Oracle plans to dump risky Java serialization
#12Re: Oracle plans to dump risky Java serialization
#13I would hate to see serialization go completely. It has its uses. Maybe Java should copy the attributes that the C# data contract serializer uses to mark the subset of classes that may appear in serialized form. It coukd be retrofitted and would be a less drastic change at the same time.
Is it really going away, though? The article mentions that it's just being replaced with a safer implementation.
Re: Oracle plans to dump risky Java serialization
#14Can someone briefly explain the problems and how general they are to other serialization interfaces?
Examples: Java Serialization, Python marshal and pickle, Ruby marshal, Perl Data::Dumper.
Re: Oracle plans to dump risky Java serialization
#15I would hate to see serialization go completely. It has its uses. Maybe Java should copy the attributes that the C# data contract serializer uses to mark the subset of classes that may appear in serialized form. It coukd be retrofitted and would be a less drastic change at the same time.
Re: Oracle plans to dump risky Java serialization
#16cool. can we kill pickle next?
One of the attack vector in Java was classes storing native pointers as integer fields calling free on the above pointers in the finalizer. So the moment one can force deserialiazation of such classes one ends up with corrupted heap and trivially weponized exploits. Does pickle in Python suffer from the same problem?
Re: Oracle plans to dump risky Java serialization
#17Can someone briefly explain the problems and how general they are to other serialization interfaces?
Re: Oracle plans to dump risky Java serialization
#18Having used java serialization a few times for POC level work, I'll be sorry to see it go. I wish they would just rename it something sufficiently ominous sounding that people wouldn't think about using it on untrusted data sources. Maybe AribitraryCodeAndDataSerialization
Re: Oracle plans to dump risky Java serialization
#19Can someone briefly explain the problems and how general they are to other serialization interfaces?
Re: Oracle plans to dump risky Java serialization
#20Earlier quoted context omitted.
One of the attack vector in Java was classes storing native pointers as integer fields calling free on the above pointers in the finalizer. So the moment one can force deserialiazation of such classes one ends up with corrupted heap and trivially weponized exploits. Does pickle in Python suffer from the same problem?
Arbitrary code execution: https://www2.cs.uic.edu/~s/musings/pickle/