| タイトル | レッドハットのbuild of keycloakにおけるオープンリダイレクトの脆弱性 |
|---|---|
| 概要 | Keycloakのリダイレクト操作中のURL検証ロジックに脆弱性が発見されました。悪意のあるリクエストを作成することで、攻撃者は検証を回避し、ユーザーを許可されていないURLにリダイレクトさせることが可能です。これにより、ドメイン内の機密情報が露出したり、さらなる攻撃が助長されたりする可能性があります。この脆弱性は、「Valid Redirect URIs」フィールドにワイルドカード(*)を設定したKeycloakクライアントに特に影響し、成功裏に悪用するにはユーザーの操作が必要です。問題の原因は、Keycloakと基盤となるJavaのURI実装がURLのuser-info部分の処理を異にしている点にあります。user-infoセクションに複数の@文字を用いて悪意のあるリダイレクトURLを構築した場合、JavaのURIパーサーはuser-infoを抽出できず、生のauthorityフィールドのみを認識します。その結果、Keycloakの検証チェックは不正なuser-infoを検出できず、ワイルドカード比較にフォールバックし、誤って悪意のあるリダイレクトを許可してしまいます。 |
| 想定される影響 | ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月19日0:00 |
| 登録日 | 2026年6月5日10:45 |
| 最終更新日 | 2026年6月5日10:45 |
| CVSS3.0 : 重要 | |
| スコア | 8.1 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| レッドハット |
| build of keycloak 26.4 以上 26.4.12 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年06月05日] 掲載 |
2026年6月5日10:45 |
| 概要 | A flaw was found in Keycloak's URL validation logic during redirect operations. By crafting a malicious request, an attacker could bypass validation to redirect users to unauthorized URLs, potentially leading to the exposure of sensitive information within the domain or facilitating further attacks. This vulnerability specifically affects Keycloak clients configured with a wildcard (*) in the "Valid Redirect URIs" field and requires user interaction to be successfully exploited. The issue stems from a discrepancy in how Keycloak and the underlying Java URI implementation handle the user-info component of a URL. If a malicious redirect URL is constructed using multiple @ characters in the user-info section, Java's URI parser fails to extract the user-info, leaving only the raw authority field. Consequently, Keycloak's validation check fails to detect the malformed user-info, falls back to a wildcard comparison, and incorrectly permits the malicious redirect. |
|---|---|
| 公表日 | 2026年5月19日21:16 |
| 登録日 | 2026年5月20日4:12 |
| 最終更新日 | 2026年5月21日2:16 |