Описание
A flaw was found in hawtio-operator. When deploying Hawtio in cluster mode, the operator creates a cluster-scoped OAuthClient with automatic grant approval (GrantMethod: auto) and no client secret (public client). The redirect URIs are derived from the operator-created Route, whose hostname is tenant-controlled via the Hawtio CR spec.routeHostName field. A malicious tenant can register an arbitrary hostname as a valid OAuth redirect target and, because grants are auto-approved, obtain OpenShift access tokens of any cluster user who visits the crafted authorization URL without any consent prompt.
Отчет
The impact of this flaw is evaluated to be Important as it might lead to stolen credentials of a high-privileged user. The combination of a public OAuthClient with automatic grant approval and tenant-controlled redirect URIs enables OAuth token theft without user consent. An attacker with edit access in any namespace can craft an authorization URL that redirects tokens to an attacker-controlled host. Red Hat recommends setting GrantMethod to prompt, adding ScopeRestrictions, and generating a client secret.
Меры по смягчению последствий
Administrators can mitigate this issue by manually patching the OAuthClient resource created by the hawtio-operator to set grantMethod to 'prompt' instead of 'auto', and by adding a client secret. This forces explicit user consent for each OAuth authorization request and prevents unauthorized token acquisition. Monitor OpenShift OAuth server audit logs for unexpected authorization grants to the hawtio OAuthClient.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat build of Apache Camel - HawtIO 4 | rhbac-4/hawtio-operator-bundle | Affected | ||
| Red Hat build of Apache Camel - HawtIO 4 | rhbac-4/hawtio-rhel9 | Affected |
Показывать по
Дополнительная информация
Статус:
EPSS
8.7 High
CVSS3
Связанные уязвимости
A flaw was found in hawtio-operator. When deploying Hawtio in cluster mode, the operator creates a cluster-scoped OAuthClient with automatic grant approval (GrantMethod: auto) and no client secret (public client). The redirect URIs are derived from the operator-created Route, whose hostname is tenant-controlled via the Hawtio CR spec.routeHostName field. A malicious tenant can register an arbitrary hostname as a valid OAuth redirect target and, because grants are auto-approved, obtain OpenShift access tokens of any cluster user who visits the crafted authorization URL without any consent prompt.
A flaw was found in hawtio-operator. When deploying Hawtio in cluster mode, the operator creates a cluster-scoped OAuthClient with automatic grant approval (GrantMethod: auto) and no client secret (public client). The redirect URIs are derived from the operator-created Route, whose hostname is tenant-controlled via the Hawtio CR spec.routeHostName field. A malicious tenant can register an arbitrary hostname as a valid OAuth redirect target and, because grants are auto-approved, obtain OpenShift access tokens of any cluster user who visits the crafted authorization URL without any consent prompt.
EPSS
8.7 High
CVSS3