Skip to content

[8.x] Fix email verification request#45227

Merged
taylorotwell merged 1 commit into
laravel:8.xfrom
axlon:email-verification
Dec 8, 2022
Merged

[8.x] Fix email verification request#45227
taylorotwell merged 1 commit into
laravel:8.xfrom
axlon:email-verification

Conversation

@axlon

@axlon axlon commented Dec 8, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

Laravel 8 isn't maintained anymore.

@driesvints driesvints closed this Dec 8, 2022
@driesvints

Copy link
Copy Markdown
Member

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

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.

3 participants