by marcodave · 8y ago · 0 comments
As I recall, the default behavior of Java (de)serializer, would only write the data fields one by one in binary format. The code itself, i.e. the bytecode of the methods and the class definition itself have to be in the classpath at application startup, so how could this malign code be injected as part of the attack?
It is similar to “return oriented programming”, which is one way to escalate c stack overflows to arbitrary code execution.