ADVISORIES

GitHub Advisory Database

GHSA-r4v8-9hgx-vm6m

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

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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.cloudfoundry.identity:cloudfoundry-identity-server
All versions before 4.5.7 (fixed in 4.5.7)
Mavenorg.cloudfoundry.identity:cloudfoundry-identity-server
From 4.6.0 before 4.7.6 (fixed in 4.7.6)
Mavenorg.cloudfoundry.identity:cloudfoundry-identity-server
From 4.8.0 before 4.10.2 (fixed in 4.10.2)
Mavenorg.cloudfoundry.identity:cloudfoundry-identity-server
From 4.11.0 before 4.12.4 (fixed in 4.12.4)
Mavenorg.cloudfoundry.identity:cloudfoundry-identity-server
From 4.13.0 before 4.19.2 (fixed in 4.19.2)

References