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

Unicode characters in password allow for less than seven character password #33

Open
leonard-IMBERT opened this issue Sep 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@leonard-IMBERT
Copy link
Contributor

leonard-IMBERT commented Sep 14, 2022

Not sure if this really is an issue but by using unicode characters (like 🬃) you can bypass the seven characters requirements in the account creation.

Why ?

It seems that a certain range of unicode characters are encoded in 4 bytes instead of 2. The password type of the <input> understand characters as their UTF-16 representation (source: MDN documentation) meaning that for the input "🬃" is two character long.

I don't think there is an easy fix, it comes from the browser interpretation of unicodes characters. This is more of a trivia than really an issue but I thought it might be useful to keep this information around

@gr-im gr-im self-assigned this Sep 15, 2022
@gr-im
Copy link
Collaborator

gr-im commented Sep 15, 2022

Yes, I have a precise idea about how to fix that (and it will serve the category failure too!) thanks for your consciencious beta-testing!

@xvw xvw unassigned gr-im Oct 5, 2022
@xvw xvw added the bug Something isn't working label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants