-
Notifications
You must be signed in to change notification settings - Fork 67
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
Default collation of column 'selector' in table reset_password_request (ResetPasswordRequestTrait::selector) ignored letter case #335
Comments
Hey @gorenstein , You're right, good catch! I wonder if we explicitly set collation on Another potential fix I may think about is to add an extra check in the PHP code after the Any thoughts? |
Hi @bocharsky-bw,
|
Hi @bocharsky-bw,
|
Thanks for doing more research on it! Both solutions have pros and cons, I'm still not sure if we should force people to migrate with changing the DB collation. I'm 👍 for mentioning it in the docs at least. Probably we could start with the changes in PHP code to double-check that selector is case-sensitive. |
What
By default the column 'selector' created with collation '*_ci', for example 'utf8mb4_unicode_ci'.
This leads to a decrease in the code's resistance to brute-force attacks.
Why
Collation '*_ci': this causes the differences in uppercase and lowercase letters to be ignored when fetching from the database by this field.
What to do
Explicitly set collation without ignoring letter case for ResetPasswordRequestTrait::selector.
The text was updated successfully, but these errors were encountered: