8000 Do not allow wildcards in the hostname for Valid Redirect Address by rmartinc · Pull Request #48793 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Do not allow wildcards in the hostname for Valid Redirect Address - #48793

Merged
rmartinc merged 1 commit into
keycloak:mainfrom
rmartinc:issue-48430
May 12, 2026
Merged

rmartinc merged 1 commit into
keycloak:mainfrom
rmartinc:issue-48430

Conversation

@rmartinc
@rmartinc rmartinc commented May 7, 2026
Copy link
Copy Markdown
Contributor

Closes #48430

This PR avoid wildcards in the hostname. For backwards compatibility it manages https://test* as https://test/*. Maybe it's a bit confusing, so if you prefer to not modify the configured valid redirect URI and just reject (performing exact matching) for those kind of patterns just let me know. I have been hesitating between the two options all the time.

Closes keycloak#48430

Signed-off-by: rmartinc <rmartinc@redhat.com>
@rmartinc
rmartinc requested a review from a team as a code owner May 7, 2026 12:40
@rmartinc
rmartinc commented May 7, 2026
Copy link
Copy Markdown
Contributor Author

@ahus1 @mposolda Take a look when you have time. It's the hardening issue about RedirectUtils. I decided to maintain backwards compatibility as much as I can, although it's a bit strange now.

@mposolda mposolda left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rmartinc Thanks, LGTM

@rmartinc rmartinc self-assigned this May 11, 2026
@rmartinc
Copy link
Copy Markdown
Contributor Author

Thanks @mposolda!

@rmartinc
rmartinc merged commit 1cec184 into keycloak:main May 12, 2026
144 of 148 checks passed
rmartinc added a commit to rmartinc/keycloak that referenced this pull request May 20, 2026
…ycloak#48793)

Closes keycloak#48430

Signed-off-by: rmartinc <rmartinc@redhat.com>
(cherry picked from commit 1cec184)
@stianst stianst mentioned this pull request Jun 1, 2026
sashyo pushed a commit to tide-foundation/keycloak-IGA that referenced this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wildcard redirect URI matching does not enforce host boundary when * is placed directly after hostname

2 participants

0