The vendor extensions of Apache XML-RPC are switched on, which lets requests deserialize objects
What it finds
Apache XML-RPC's vendor extensions add types beyond the standard, among them serialized Java objects. With setEnabledForExtensions(true) a client or server deserializes what the other side sends (CWE-502), which has been used to run code on servers.
Reported is setEnabledForExtensions(true).
From the rule's source, xml_rpc_extensions.rs.
class Rpc { void setup(org.apache.xmlrpc.client.XmlRpcClientConfigImpl config) { config.setEnabledForExtensions(true);tx0 reports: serialized Java objects config.setEnabledForExtensions(false); }} Turn it on, off or suppress it
The rule runs in every tier. To turn it off for a project, set its level in tx0.toml:
[rules]
"tx0/java:rpc-object-extensions" = "off"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/java:rpc-object-extensions] reason="..."tx0 explain tx0/java:rpc-object-extensions shows the same in the terminal. Found a false positive? Report it.