VDB
Sign up
HIGH7.5

GHSA-r4v8-9hgx-vm6m

Cloud Foundry UAA accepts refresh token as access token on admin endpoints

Quick fix

GHSA-r4v8-9hgx-vm6m — org.cloudfoundry.identity:cloudfoundry-identity-server: upgrade to the fixed version with the command below.

# pom.xml: bump <version>4.5.7</version> for org.cloudfoundry.identity:cloudfoundry-identity-server

Details

Cloud Foundry UAA, versions 4.19 prior to 4.19.2 and 4.12 prior to 4.12.4 and 4.10 prior to 4.10.2 and 4.7 prior to 4.7.6 and 4.5 prior to 4.5.7, incorrectly authorizes requests to admin endpoints by accepting a valid refresh token in lieu of an access token. Refresh tokens by design have a longer expiration time than access tokens, allowing the possessor of a refresh token to authenticate longer than expected. This affects the administrative endpoints of the UAA. i.e. /Users, /Groups, etc. However, if the user has been deleted or had groups removed, or the client was deleted, the refresh token will no longer be valid.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.cloudfoundry.identity:cloudfoundry-identity-server
Introduced in: 0Fixed in: 4.5.7
Fix# pom.xml: bump <version>4.5.7</version> for org.cloudfoundry.identity:cloudfoundry-identity-server
Maven/org.cloudfoundry.identity:cloudfoundry-identity-server
Introduced in: 4.6.0Fixed in: 4.7.6
Fix# pom.xml: bump <version>4.7.6</version> for org.cloudfoundry.identity:cloudfoundry-identity-server
Maven/org.cloudfoundry.identity:cloudfoundry-identity-server
Introduced in: 4.8.0Fixed in: 4.10.2
Fix# pom.xml: bump <version>4.10.2</version> for org.cloudfoundry.identity:cloudfoundry-identity-server
Maven/org.cloudfoundry.identity:cloudfoundry-identity-server
Introduced in: 4.11.0Fixed in: 4.12.4
Fix# pom.xml: bump <version>4.12.4</version> for org.cloudfoundry.identity:cloudfoundry-identity-server
Maven/org.cloudfoundry.identity:cloudfoundry-identity-server
Introduced in: 4.13.0Fixed in: 4.19.2
Fix# pom.xml: bump <version>4.19.2</version> for org.cloudfoundry.identity:cloudfoundry-identity-server

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:maven/org.cloudfoundry.identity/cloudfoundry-identity-server"]}'