Bug 2251407 (CVE-2023-6291) - CVE-2023-6291 keycloak: redirect_uri validation bypass
Summary: CVE-2023-6291 keycloak: redirect_uri validation bypass
Keywords:
Status: NEW
Alias: CVE-2023-6291
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2251416
Blocks: 2251409
TreeView+ depends on / blocked
 
Reported: 2023-11-24 19:06 UTC by Rohit Keshri
Modified: 2025-05-06 08:29 UTC (History)
56 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:7854 0 None None None 2023-12-14 18:58:33 UTC
Red Hat Product Errata RHSA-2023:7855 0 None None None 2023-12-14 18:58:14 UTC
Red Hat Product Errata RHSA-2023:7856 0 None None None 2023-12-14 18:58:23 UTC
Red Hat Product Errata RHSA-2023:7857 0 None None None 2023-12-14 19:55:11 UTC
Red Hat Product Errata RHSA-2023:7858 0 None None None 2023-12-14 19:04:35 UTC
Red Hat Product Errata RHSA-2023:7860 0 None None None 2023-12-14 19:16:49 UTC
Red Hat Product Errata RHSA-2023:7861 0 None None None 2023-12-14 20:04:34 UTC
Red Hat Product Errata RHSA-2024:0798 0 None None None 2024-02-13 16:53:34 UTC
Red Hat Product Errata RHSA-2024:0799 0 None None None 2024-02-13 16:52:46 UTC
Red Hat Product Errata RHSA-2024:0800 0 None None None 2024-02-13 16:53:16 UTC
Red Hat Product Errata RHSA-2024:0801 0 None None None 2024-02-13 16:54:32 UTC
Red Hat Product Errata RHSA-2024:0804 0 None None None 2024-02-13 17:08:08 UTC

Description Rohit Keshri 2023-11-24 19:06:10 UTC
An issue was found in the redirect_uri validation logic that allows for a bypass of otherwise explicitly allowed hosts. 

The problem arises in the verifyRedirectUri method, which attempts to enforce rules on user-controllable input, but essentially causes a desynchronization in how Keycloak and browsers interpret URLs. Keycloak, for example, receives "https://www%2ekeycloak%2eorg%2fapp%2f:y@example.com" and thinks the authority to be keycloak.org when it is actually example.com. This happens because the validation logic is performed on a URL decoded version, which no longer represents the original input.

Refer: https://github.com/keycloak/keycloak/pull/24819

Comment 8 errata-xmlrpc 2023-12-14 18:58:11 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On 7.6 for RHEL 9

Via RHSA-2023:7855 https://access.redhat.com/errata/RHSA-2023:7855

Comment 9 errata-xmlrpc 2023-12-14 18:58:19 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On 7.6 for RHEL 8

Via RHSA-2023:7856 https://access.redhat.com/errata/RHSA-2023:7856

Comment 10 errata-xmlrpc 2023-12-14 18:58:30 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On 7.6 for RHEL 7

Via RHSA-2023:7854 https://access.redhat.com/errata/RHSA-2023:7854

Comment 11 errata-xmlrpc 2023-12-14 19:04:33 UTC
This issue has been addressed in the following products:

  Single Sign-On 7.6.6

Via RHSA-2023:7858 https://access.redhat.com/errata/RHSA-2023:7858

Comment 12 errata-xmlrpc 2023-12-14 19:16:45 UTC
This issue has been addressed in the following products:

  Red Hat build of Keycloak 22.0.7

Via RHSA-2023:7860 https://access.redhat.com/errata/RHSA-2023:7860

Comment 13 errata-xmlrpc 2023-12-14 19:55:08 UTC
This issue has been addressed in the following products:

  RHEL-8 based Middleware Containers

Via RHSA-2023:7857 https://access.redhat.com/errata/RHSA-2023:7857

Comment 14 errata-xmlrpc 2023-12-14 20:04:30 UTC
This issue has been addressed in the following products:

  Red Hat build of Keycloak 22

Via RHSA-2023:7861 https://access.redhat.com/errata/RHSA-2023:7861

Comment 15 errata-xmlrpc 2024-02-13 16:52:43 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On 7.6 for RHEL 8

Via RHSA-2024:0799 https://access.redhat.com/errata/RHSA-2024:0799

Comment 16 errata-xmlrpc 2024-02-13 16:53:13 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On 7.6 for RHEL 9

Via RHSA-2024:0800 https://access.redhat.com/errata/RHSA-2024:0800

Comment 17 errata-xmlrpc 2024-02-13 16:53:30 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On 7.6 for RHEL 7

Via RHSA-2024:0798 https://access.redhat.com/errata/RHSA-2024:0798

Comment 18 errata-xmlrpc 2024-02-13 16:54:28 UTC
This issue has been addressed in the following products:

  RHEL-8 based Middleware Containers

Via RHSA-2024:0801 https://access.redhat.com/errata/RHSA-2024:0801

Comment 19 errata-xmlrpc 2024-02-13 17:08:04 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On

Via RHSA-2024:0804 https://access.redhat.com/errata/RHSA-2024:0804


Note You need to log in before you can comment on or make changes to this bug.