The vulnerability lies in the org.keycloak.services.resources.admin.ClientScopeEvaluateResource.getUserModel method, which failed to authorize if an administrator had the rights to view a user before returning the user's data. The patch 492d1f04cdad425dadb9d5e1faa94dd17a875573 directly addresses this by adding a try-catch block to call auth.users().requireView(user), which throws a ForbiddenException if the administrator lacks the appropriate permissions. This getUserModel method is called by several public-facing endpoints within the ClientScopeEvaluateResource class, such as generateAccessToken, generateIDToken, and getGranted, which serve as the entry points for exploiting this vulnerability. An attacker with limited administrative privileges (like 'view-clients') could have used any of these endpoints with an arbitrary userId to leak Personally Identifiable Information (PII) of any user in the realm. The runtime stack trace during exploitation would show one of the public methods calling the vulnerable getUserModel method.