CVE-2016-6812: XSS
Apache CXF HTTP transport module uses FormattedServiceListWriter to provide an HTML page which lists the names and absolute URL addresses of the available service endpoints. The module calculates the base URL using the current HttpServletRequest. The calculated base URL is used by FormattedServiceListWriter to build the service endpoint absolute URLs. If the unexpected matrix parameters have been injected into the request URL then these matrix parameters will find their way back to the client in the services list page which represents an XSS risk to the client.
External References:
http://cxf.apache.org/security-advisories.data/CVE-2016-6812.txt.asc?version=1&modificationDate=1482164360602&api=v2
Other sources
The HTTP transport module in Apache CXF prior to 3.0.12 and 3.1.x prior to 3.1.9 uses FormattedServiceListWriter to provide an HTML page which lists the names and absolute URL addresses of the available service endpoints. The module calculates the base URL using the current HttpServletRequest. The calculated base URL is used by FormattedServiceListWriter to build the service endpoint absolute URLs. If the unexpected matrix parameters have been injected into the request URL then these matrix parameters will find their way back to the client in the services list page which represents an XSS risk to the client.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.cxf:cxf-coreto a version that resolves this vulnerability.Fixed in 3.1.9 - Upgrade
Upgrade
maven/org.apache.cxf:cxf-coreto a version that resolves this vulnerability.Fixed in 3.0.12 - Upgrade
Upgrade
redhat/apache-cxfto a version that resolves this vulnerability.Fixed in 3.0.12 - Upgrade
Upgrade
redhat/apache-cxfto a version that resolves this vulnerability.Fixed in 3.1.9 - Upgrade
Upgrade
Apache CXF HTTP transport moduleto a version that resolves this vulnerability.Fixed in 3.0.12 - Upgrade
Upgrade
Apache CXF HTTP transport moduleto a version that resolves this vulnerability.Fixed in 3.1.9
Event History
Frequently Asked Questions
What is the severity of CVE-2016-6812?
CVE-2016-6812 has been classified as a medium severity vulnerability.
How do I fix CVE-2016-6812?
To fix CVE-2016-6812, upgrade to Apache CXF version 3.0.12 or 3.1.9.
What software is affected by CVE-2016-6812?
CVE-2016-6812 affects Apache CXF versions up to 3.0.11 and specific versions in the 3.1.x series.
What type of vulnerability is CVE-2016-6812?
CVE-2016-6812 is a vulnerability in the HTTP transport module of Apache CXF that can expose service endpoint information.
Is there a patch available for CVE-2016-6812?
Yes, patches for CVE-2016-6812 are available in the releases 3.0.12 and 3.1.9 of Apache CXF.