3 ms·
Note that the class itself is not serialized. Only the instance of the class is serialized. The class itself is looked up by name in the running program. This i
by immibis 5y ago
Note that the class itself is not serialized. Only the instance of the class is serialized. The class itself is looked up by name in the running program. This is still a footgun because you can try to deserialize classes that weren't meant to be deserialized in this context, but it's a way smaller footgun than being able to just load arbitrary code into the program.