To ensure that Java built-in security is enabled to
address the deserialization vulnerability, complete the following steps.
-
Remove the following settings in the saperion.properties file.
- blacklisted.classes.for.deserialization - Includes a list of blacklisted classes. If Saperion detects deserialization request from any of the listed classes, it generates an exception. A sensible default has been provided.
- max.allowed.array.size - Specifies the maximum size of an array or array list that can be deserialized and blocks a larger request by generating an exception.
- max.allowed.map.size - Specifies the maximum entries of a map implementation that is allowed for deserialization and blocks a larger request with an exception.
-
Activate and list the serialization filters in the Saperion Java Core Server.
To activate and list the serialization filters in the Saperion Java Core Server,
complete the following steps.
- In the [drive:]\\{path}\Saperion\Application\scr\scr-javacoreserver\config directory, open the "wrapper.conf" file.
- Under the Java Additional Parameters section, add the -Djdk.serialFilter parameter.
Example:
# Java Additional Parameters wrapper.java.additional.6=Djdk.serialFilter=maxarray=1000000;maxdepth=1000; maxrefs=1000000;!org.apache.commons.collections.functors.InvokerTransformer ; !com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl; ! org.apache.commons.collections.functors.InstantiateTransformer ;! org.codehaus.groovy.runtime.ConvertedClosure;!org.codehaus.groovy.runtime.MethodClosure; !org.apache.log4j.net.SocketServer;!com.mchange.v2.c3p0.*