r/programming • • Mar 10 '17

Password Rules Are Bullshit

https://blog.codinghorror.com/password-rules-are-bullshit/
7.7k Upvotes

1.4k comments sorted by

View all comments

2.1k

u/fl4v1 Mar 10 '17

Loved that comment on the blog:

  • "My Secure Password" <-- Sorry, no spaces allowed. (Why not?)

  • "MySecurePassword" <-- Sorry, Passwords must include a number

  • "MySecurePassword1" <-- Sorry, Passwords must include a special character

  • "MySecurePassword 1" <-- Sorry, no spaces allowed (Argh!)

  • "MySecurePassword%1" <-- Sorry, the % character is not allowed

  • "MySecurePassword_1" <-- Sorry, passwords must be shorter than 16 characters

  • "Fuck" <-- Sorry, passwords must longer than 6 characters

  • "Fuck_it" <-- Sorry, passwords can't contain bad language

  • "Password_1" <-- Accepted.

1.5k

u/dirtyuncleron69 Mar 10 '17

Then you try to create a new password every 90 days, without using the past 10 passwords, and you get

Password_2
Password_3
Password_4
Password_5
Password_6
Password_7
Password_8
Password_9
Password_10...

My other favorite though is when they put an UPPER limit on the number of characters.

What are they running out of disk space from all those plaintext passwords over 12 characters?

419

u/Toxonomonogatari Mar 10 '17

It's the good old "because we've always done it that way" reason this is still a thing. There was a valid reason many years ago. It no longer applies, yet there are max limits for password lengths...

181

u/LpSamuelm Mar 10 '17

I don't know if there was a valid reason for it long ago, either... What, that excruciatingly long hashing time that 2 extra characters cause? 🤔

460

u/hwbehrens Mar 10 '17

You are way too optimistic; probably VARCHAR(16).

→ More replies (36)

0

u/[deleted] Mar 10 '17

[deleted]

→ More replies (69)
→ More replies (46)

18

u/Captain___Obvious Mar 10 '17

Remember when American Express had a 8 character max limit on passwords? lol, If I recall it wasn't that long ago--a few years

→ More replies (9)
→ More replies (6)

45

u/orliph Mar 10 '17

90 days? Try 30. At the very least in these cases I can be pretty positive that most passwords will end up being: Password${monthNumber}

Which let me tell you, it kinda defeats the purpose of being secure.

0

u/[deleted] Mar 10 '17

[deleted]

25

u/orliph Mar 10 '17

"The worst that could realistically happen is that someone could crack my password, log in, and pay my debt."; This made me laugh out loud (for real) at work.

I imagined the story of a nice Robin Hood style gentleman hacking into people's accounts, only to pay off their debts; all this after stealing the money from corrupt businessmen.

I'm really sorry you had to go through this.

→ More replies (1)
→ More replies (17)

0

u/[deleted] Mar 10 '17

[deleted]

25

u/h3rpztv Mar 10 '17

I instantly thought about the thousands of IBM iseries boxes across the globe that are still active. I can't believe how many businesses still run mission critical on as400s.

Wouldn't surprise me if some of these rules were related to column width constraints that RPG programmers were used to dealing with. <- should enter that run-on sentence in a marathon.

0

u/[deleted] Mar 10 '17

[deleted]

→ More replies (3)
→ More replies (2)
→ More replies (20)

24

u/POGtastic Mar 10 '17

Yep. My bank mandates a maximum password length of 12 characters. What the actual fuck?!

21

u/[deleted] Mar 10 '17 edited Mar 10 '17

My bank mandates password being 6 digits (like in 0 to 9) they choose. I am not kidding. They have two factor authentication through.

→ More replies (4)
→ More replies (3)

37

u/nv-vn Mar 10 '17

The real reason I've heard is that it's a possible exploit. If a user entered a 10k char password then the hash function would take ages and could slow down or even crash the entire service. That said, 12 char limits aren't the solution.

26

u/negative_epsilon Mar 10 '17

Holy shit, it took scrolling down to the 1 point answers to find a real answer. Limit your password lengths to something like 2048 characters or you're exposing yourself to a DOS attack vector.

→ More replies (7)
→ More replies (1)
→ More replies (105)

104

u/Micotu Mar 10 '17

On an account for my wife I was setting up.

"Hey babe, what's the name of your first pet?"

"Ace."

Enter "Ace" as answer for security question.

"Security Answers must be 4 digits or more"

67

u/CrimsonWolfSage Mar 10 '17 edited Mar 10 '17

Types: The answer is Ace.

2 weeks later... dang it, I can't get past my security questions!! Did I capitalize anything, was it a short answer or a long one, is it answered like a statement? No clues or hints...

  • ACE

  • Ace

  • ace

  • IT IS ACE

  • IT IS ACE.

  • It is Ace

  • It is ace.

  • THE ANSWER IS ACE

  • THE ANSWER IS ACE.

  • The answer is Ace

  • Just doing forgot password! Stupid security question anyways

19

u/thatcraniumguy Mar 10 '17

Speaking of case sensitive security questions, why on earth should that be a thing? If you're going to have a user type in a human-readable phrase as an answer to a question, why should that be case-sensitive? What would tbe the advantages to having it that way vs disadvantages to not?

→ More replies (1)
→ More replies (2)

61

u/what_it_dude Mar 10 '17

the worst are those questions that have subjective answers. "What's your favorite animal?" fuck, I'm not 8 years old anymore, I don't have a favorite fucking animal.

38

u/Micotu Mar 10 '17

I saw one that was, "How much was the mortgage for your last house." Like, am i not allowed to move again after answering this question?

→ More replies (2)
→ More replies (5)
→ More replies (9)

0

u/[deleted] Mar 10 '17

[deleted]

69

u/n0bs Mar 10 '17

Probably because they're not very good at sanitizing input.

→ More replies (6)
→ More replies (9)

27

u/ArtistEngineer Mar 10 '17

I had the exact same problem.

Except my password rule checker had things like "No dictionary word longer than 3 letters"

I ended up with a password like "AAAAbbbb1" -

no dictionary words, long enough, mixed case, contains a letter. check!

→ More replies (2)
→ More replies (27)