Skip to content
RCE Write-up Intermediate

“Actively Exploited” CVE-2024–38856 Apache OFBiz

Apache OFBiz before version 18.12.14 has a path traversal vulnerability in its unauthenticated XML-RPC endpoint, allowing attackers to send crafted XML payloads that lead to remote code execution. An attacker could execute arbitrary OS commands on the server.

hariharanhex00 Follow

Published on medium.com

🤑Improper Limitation of a Pathname to a Restricted Directory (‘Path Traversal’) vulnerability in Apache OFBiz.This issue affects Apache OFBiz: before 18.12.14[not include]. Users are recommended to upgrade to version 18.12.14, which is Exploited Actively!.

HariHaranK, on medium.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the XML-RPC endpoint processes untrusted XML data without proper authentication or input validation, allowing deserialisation of malicious Java objects.

Impact

An attacker could execute arbitrary OS commands on the server, leading to full compromise.

What the attacker needed

Target runs Apache OFBiz before 18.12.14; XML-RPC endpoint is accessible; No authentication required

The fix

Upgrade to Apache OFBiz version 18.12.14 or later, and if patching is not possible, disable the XML-RPC endpoint or block it via firewall/WAF.

How it was found

  1. Find a target running Apache OFBiz on port 8443 using a search engine like Shodan or Fofa.
  2. Send a POST request to the /webtools/control/xmlrpc endpoint with a crafted XML payload containing a malicious serialised Java object.
  3. The payload triggers remote code execution via a known deserialisation gadget, such as JdbcRowSetImpl.
  4. Alternatively, use a provided Python script to exploit the target by specifying the target URL and a command to run.

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 write-up has not been written yet. The Original tab links to the source.

Apache OFBiz is a business software suite. A part of it that handles XML requests does not check who is sending them or what they contain, so an attacker can send a request that makes the server run commands. This means someone on the internet could take control of the server without logging in.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by hariharanhex00

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.