GHSL-2020-069: Unsafe deserialization of XMLRPC arguments in ApacheOfBiz - CVE-2020-9496
Apache OfBiz exposes an unauthenticated XMLRPC endpoint that deserializes request arguments before authentication, allowing an attacker to execute arbitrary code if suitable gadget classes are present.
Originally disclosed on GitHub Security Lab
Apache OfBiz is vulnerable to pre-auth Remote Code Execution (RCE) via unsafe deserialization.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The XMLRPC endpoint deserializes untrusted serialized arguments before authentication, and the classpath contains gadget classes that enable remote code execution.
Impact
An unauthenticated attacker could execute arbitrary system commands with the privileges of the servlet container running OfBiz.
What the attacker needed
Network access to the XMLRPC endpoint; suitable gadget classes on the classpath
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Apache OfBiz is a business application. It has a web address that accepts remote procedure calls (XMLRPC) without asking for a password first. Before checking who sent the request, the software turns the data back into objects. If the software's libraries include a class that can be abused during that conversion, an attacker can run their own commands on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.