by deskamess · 1y ago · 0 comments
What is the end-goal of this... would it be data exfiltration vs ransomware.
That means if the shape of your object is something like
class Foo implements Serializable {
SerializableFunction bar;
void doBar() {
bar.apply();
}
}
You've created a class which an attacker can plug in any object which implements `SerializableFunction` into `bar`. That includes externally created functions!Here's an article detailing exactly how that works: https://www.baeldung.com/java-serialize-lambda
The end-goal is to gain complete access to the system - the outcome (data theft or ransomware) is customers choice