The createTokenFromRefreshToken function (oidc_service.go:451) validates the refresh token's cryptographic integrity but does not re-validate the user's current authorization state before issuing new tokens. This allows three bypasses:
Authorization revocation bypass: After a user revokes an OIDC client's authorization, the client can continue refreshing tokens indefinitely because RevokeAuthorizedClient does not delete associated refresh tokens, and the refresh flow does not check if the authorization record still exists.
Disabled user bypass: After an admin disables a user account, pre-existing refresh tokens continue to work because the OIDC token endpoint does not check user.Disabled. Session-based access is properly blocked by auth middleware, but the OIDC refresh path bypasses it entirely.
Group restriction bypass: After removing a user from an OIDC client's allowed user groups, the refresh token continues to work because createTokenFromRefreshToken does not call IsUserGroupAllowedToAuthorize.
Each refresh rotates the token with a fresh 30-day expiry, enabling perpetual access.
createTokenFromRefreshToken (oidc_service.go:451-547) performs the following checks on a refresh request:
It does NOT check:
UserAuthorizedOidcClient record still exists for the user-client pair -- MISSINGuser.Disabled is false -- MISSING
-...0.0.0-20260419162744-978ac87deffeExploitability
AV:NAC:LAT:NPR:LUI:PVulnerable System
VC:HVI:HVA:NSubsequent System
SC:NSI:NSA:N8.5/CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N