CVE-2022-1245CWE-862

A privilege escalation flaw was found in the token exchange feature of keycloak

published July 7, 2022

CVSS
—
EPSS
1%
Percentile
72.5
In the wild
Unconfirmed
What it is

⚠️ A small oversight in Keycloak’s token exchange can let a crafty client impersonate others! This vulnerability allows clients to exchange tokens for any other client, potentially exposing sensitive services. 🔥 Think of it like a VIP pass that lets you into exclusive areas of a concert. If someone can just swap their pass for another, they could get backstage access without a ticket! With this flaw, an attacker holding a valid access token could gain unauthorized access to additional client services, leading to serious security breaches. Imagine a party crasher finding their way into the VIP lounge—definitely not a good look!

Put simply

Think of it like a VIP pass that lets you into exclusive areas of a concert. If someone can just swap their pass for another, they could get backstage access without a ticket! This privilege escalation vulnerability in Keycloak allows a client application to exchange tokens for any target client by simply passing the target's client_id, as authorization checks are missing in the token exchange feature.

What to do

With this flaw, an attacker holding a valid access token could gain unauthorized access to additional client services, leading to serious security breaches. Imagine a party crasher finding their way into the VIP lounge—definitely not a good look! To mitigate this issue, ensure proper authorization checks are implemented in the token exchange process. Regularly update Keycloak to the latest version, and monitor client permissions to restrict access appropriately. You've got this! Implementing these changes will bolster your defenses and keep those VIP areas secure. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01414 · 72.5th percentile
Weakness
CWE-862 · Missing Authorization
Published
2022-07-07T23:39Z
EPSS history
Timeline
  • 07 JUL 23:39Z
    A privilege escalation flaw was found in the token exchange feature of keycloak
    cvelistv5