dumb-password-rules icon indicating copy to clipboard operation
dumb-password-rules copied to clipboard

Suggest standard test cases

Open rillig opened this issue 5 years ago • 4 comments

Figure out the actually allowed characters

  • Are letters allowed?
  • Are digits allowed?
  • Are spaces allowed?
  • Which ASCII punctuation characters are allowed?
  • Which non-ASCII characters are allowed?

Figure out the actually allowed length

  • Minimum length
  • Maximum length in characters
  • Maximum length in bytes (only applies if non-ASCII characters are accepted)

Figure out if all characters are relevant

  • Are non-ASCII characters distinguishable, that is, is abcÄÄÄ a different password than abcÖÖÖ?
  • For long passwords, is the last character actually relevant, or can you log in even without it?

These are just a few ideas, I'm sure there is already an "official" list of this approach. This approach could be linked in the main document.

rillig avatar Jun 29 '20 16:06 rillig

Thanks for your recent contributions.

Are you suggesting here an official way to identify bad password rules?

duffn avatar Jun 30 '20 02:06 duffn

Yes, kind of. I am just trying to summarize the findings from the individual sites that are listed on the front page.

See also https://github.com/OWASP/ASVS/blob/master/4.0/en/0x11-V2-Authentication.md, which has more reputation than my quickly made-up list of things to test.

rillig avatar Jun 30 '20 06:06 rillig

Would it perhaps be an idea to use a format similar to the Apple Password Rules Validation Tool?

required: lower; required: upper; required: digit; required: special; minlength: 20;

hassankhan avatar Sep 07 '20 22:09 hassankhan

That's a possibility, though I'm not certain I want to or have the time to make the repository more complex at the moment.

duffn avatar Sep 08 '20 14:09 duffn

I think I will stick with the mostly arbitrary way the site is right now. I'm not interested in putting a strict set of rules around what should and shouldn't make it on the list.

duffn avatar Feb 15 '23 02:02 duffn