Skip to content

CVE-2024-8883 Vulnerable Redirect URI Validation Results in Open Redirect #33115

Closed

Description

@stianst

Description

A misconfiguration flaw was found in Keycloak. This issue can allow an attacker to redirect users to an arbitrary URL if a 'Valid Redirect URI' is set to http://localhost or http://127.0.0.1, enabling sensitive information such as authorization codes to be exposed to the attacker, potentially leading to session hijacking.

GHSA-vvf8-2h68-9475

Activity

  1. added
    kind/bugCategorizes a PR related to a bug
    kind/cveIssues identified as CVEs on third-party dependencies, or issues which Keycloak is not affected
    and removed on Sep 19, 2024
  2. stianst commented on Sep 20, 2024

    @stianst
    ContributorAuthor

    Resolved in 9f37a83

  3. kmzs commented on Sep 24, 2024

    @kmzs

    Thank you for fixing this security issue so fast 👍

  4. ebarped commented on Nov 13, 2024

    @ebarped

    Hi!

    Im not sure if this is due to the fix #33189, but i cannot use http://localhost or http://127.0.0.1 as valid_redirect_uris in any of the new created clients, even in start-dev mode.

    If this is the expected behaviour, i think that we should only block those URIs in prod mode, not in dev mode.

    Thanks!

  5. jonkoops commented on Nov 13, 2024

    @jonkoops
    Contributor

    Please file a new issue with steps to reproduce on a clean Keycloak installation, we cannot triage comments on closed issues.

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

    kind/bugCategorizes a PR related to a bugkind/cveIssues identified as CVEs on third-party dependencies, or issues which Keycloak is not affectedrelease/25.0.6release/26.0.0

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions