Skip to content

SEC-10: Keycloak's own clients in realm cmapi keep wildcard redirect URIs #220

Open

Description

@ephico2real2

Part of #14

What is wrong: Keycloak makes its own clients in each realm, and three of them have a redirect URI that ends in *: security-admin-console (/admin/cmapi/console/*), account and account-console (paths below /realms/cmapi/account/). cmapi's realm import does not name them, so realm cmapi will have them as Keycloak makes them. The exact list of #205 covers only the clients that the import names. RFC 9700, section 2.1, asks for an exact match for each client.

Where: the import deploy/manifests/environments/crc/realm/10-realm-import.yaml and the chart's deploy/helm/cmapi/templates/keycloak-realm.yaml name admin-cli (disabled, #181) and none of the three. Keycloak's source: services/src/main/java/org/keycloak/services/managers/RealmManager.java (26.0.0, lines 164 to 178, 383 to 429 and 503 to 512), read by the reviewer of #205 (docs/reviews/2026-11-14-issue-205/reviewer-1-report.md, C1).

Not measured: the clients of a real realm cmapi. The realm exists on no cluster, and no container can run on this Mac now (#157).

How to prove it: deploy/tests/realm-test.py (the realm on a real Keycloak, in GitHub's manifests job) lists each client of the realm after the import and the sync, and fails while an enabled client with the standard flow has a redirect URI with *. After the fix it passes.

Research mandate: read Keycloak's documentation for the account console and the admin console in a realm that is not master. Decide for each of the three: disable it in the import (as admin-cli), or give it exact URIs. A person of realm cmapi comes from LDAP and has no use for the account console today; check that before it is disabled. The wildcards are on Keycloak's own host, so the risk is an open path on that host, not another host.

Class

TDT. The clients come with each Keycloak realm; the fix removes a known weakness and adds no feature.

Activity

  1. added
    bug
    class:TDT
    status:open
    sev:low
    Backlog
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backlogbugclass:TDTsev:lowstatus:open

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions