3 ms·
There are some valid uses for it, but the interface is unsafe by default. How about instead, requiring a MAC key in the serialization protocol?
by exabrial 8y ago
There are some valid uses for it, but the interface is unsafe by default. How about instead, requiring a MAC key in the serialization protocol?
- dwaite 8y agoYou can package up the data so that there is authentication to evaluate before you hit the serialization layer, and integrity behind that authentication. This might be your approach if say your session cookie is based on serialized Java. (However, most people give up on this approach - java serialization is also very inefficient space-wise, and the cookie will get too big for the browser to honor)