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

[8.x] Fix email verification request #45227

Merged
merged 1 commit into from Dec 8, 2022
Merged

[8.x] Fix email verification request #45227

merged 1 commit into from Dec 8, 2022

Conversation

axlon
Copy link
Contributor

@axlon axlon commented Dec 8, 2022

This PR is a redo of #45226

For hash_equals() to effectively prevent timing attacks, the known value must be the first parameter, and the user supplied input must be the second parameter. Laravel currently does this the other way around in email verification requests, defeating the purpose of using hash_equals() over ===.

This is the only instance in the framework (that I could find) where the parameter order is incorrect.

@driesvints
Copy link
Member

Laravel 8 isn't maintained anymore.

@driesvints driesvints closed this Dec 8, 2022
@driesvints
Copy link
Member

Sorry, didn't saw this was a security fix.

@driesvints driesvints reopened this Dec 8, 2022
@taylorotwell taylorotwell merged commit 2f3879e into laravel:8.x Dec 8, 2022
@axlon axlon deleted the email-verification branch December 8, 2022 14:42
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.

None yet

3 participants