Skip to content

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.

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