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
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
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
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
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
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
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
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
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
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
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
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
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