...
You were though still at risk if you use RMI, JNDI, JMX or Spring and maybe other Java classes we don't use OOTB in OFBiz. We So we (PMC) decided to comment out RMI OOTB
Jira | ||||||
---|---|---|---|---|---|---|
|
We also decided to provide a simple way to protect yourself from all possible Java serialization vulnerabilities.
...
To be safe in case you use RMI for instance, use one of the start*-secure ant targets or use the JVM arguments those targets use.
The idea is simple: initially you don't know what to put in your whitelist because there are some objects in OFBiz you need to put there, plus the ones you add yourself. So you use an empty whitelist and with the dryrun option you specify a file where the serialized objects are listed. Then you can continuously fill your whitelist to keep things secure. You can use the trace option to get a better idea of where and why an object is serialized.