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

Add password rules for carte-mobilite-inclusion.fr #855

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mlaunois
Copy link

Overall Checklist

for password-rules.json

  • The given rule isn't particularly standard and obvious for password managers
  • Generated passwords have been tested from this rule using the Password Rules Validation Tool
  • Information has been included about the website's requirements (eg. screenshots, error messages, steps during experimentation, etc.)
  • The PR isn't documenting something that would be a common practice among password managers (e.g. minimal length of 6)

This pull request adds password rules for carte-mobilite-inclusion.fr.


Despite officially allowing passwords with at least 12 characters and a lowercase letter, an uppercase letter and a digit, the carte-mobilite-inclusion.fr website does not allow symbols (such as hyphens) in account passwords:
passsym.png
(the "Forgot Password" page is used here because an account cannot be created directly on the website)

After further examination of their JavaScript source code, they seem to use the following regex to validate passwords:

/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])[A-Za-z0-9]{12,}$/

The website will also silently fail to update the password if it is longer than 30 characters:

  • With a 31-character password, an HTTP 406 error occurs: pass31.png (the token used to authenticate the request has been redacted)
  • The password change request succeeds if the password has only 30 characters: pass30.png

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.

1 participant