MEDIUM 6.5
GHSA-542g-m3fx-q86f
Apache CXF has Authentication Bypass in OAuth2 TokenIntrospectionService
Quick fix
GHSA-542g-m3fx-q86f — org.apache.cxf:cxf-rt-rs-security-oauth2: upgrade to the fixed version with the command below.
# pom.xml: bump <version>4.2.2</version> for org.apache.cxf:cxf-rt-rs-security-oauth2 Details
An authentication bypass vulnerability exists in the OAuth2 TokenIntrospectionService in Apache CXF. Due to a missing 'throw' keyword in the security context check, the introspection endpoint (/services/oauth2/introspect) can be accessed by any unauthenticated network attacker. However note that this is a safeguard only in the case that someone forgot to enable authentication on the service. Users are recommended to upgrade to version 4.2.2 or 4.1.7, which fixes this issue.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven / org.apache.cxf:cxf-rt-rs-security-oauth2
Introduced in:
4.2.0 Fixed in: 4.2.2 Fix
# pom.xml: bump <version>4.2.2</version> for org.apache.cxf:cxf-rt-rs-security-oauth2 Maven / org.apache.cxf:cxf-rt-rs-security-oauth2
Introduced in:
0 Fixed in: 4.1.7 Fix
# pom.xml: bump <version>4.1.7</version> for org.apache.cxf:cxf-rt-rs-security-oauth2