Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] Allow redirect after login to absolute URLs #47069

Merged
merged 1 commit into from Jul 29, 2022

Conversation

UFTimmy
Copy link

@UFTimmy UFTimmy commented Jul 26, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #46533
License MIT
Doc PR

Fixes the regression introduced by #46317, and once again allows absolute URLs to be the target of authentication redirection, as specified in the documentation (https://symfony.com/doc/current/security/form_login.html#changing-the-default-page)

Copy link

@Romaixn Romaixn left a comment

Hello, I just tested this in a real project and it's works well ! :)

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

This PR is correct.
Of course, we should not allow redirecting to any URL, but this is already guarded since #24995 (see CVE-2017-16652)

fabpot
fabpot approved these changes Jul 29, 2022
@fabpot
Copy link
Member

@fabpot fabpot commented Jul 29, 2022

Thank you @UFTimmy.

@fabpot fabpot merged commit dfa765d into symfony:4.4 Jul 29, 2022
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants