top | item 11748092

Ask HN: Disabling paste in password boxes - why is it practiced?

62 points| BIackSwan | 10 years ago | reply

I have the practice of disabling paste functionality into password fields. I don't understand why it is necessary - on the contrary - it discourages use of password managers - especially on mobile devices.

The justification by the app builders is that it "improves security". I dont buy it.

Is there a good reason to disable this functionality? What does it improve since automated hacking programs can always by pass it?

61 comments

order
[+] satysin|10 years ago|reply
No doubt some self-proclaimed "security expert" did it long ago and it got picked up by a few places and the rest is history.

There are many such anti-patterns around like requiring "complex" passwords with upper, lower, special, etc. characters yet do not work with >16 characters. Something that pisses me off to no end is Microsoft not allowing spaces in their passwords for some unknown reason.

If it were up to me I would have one limit to passwords, length. A minimum of 12 characters. Sure you will get some moron using aaaaaaaaaaaa but they are the kind of people who will find a way to use an idiotic password no matter what.

The reality is passwords need to die. We should be encouraging pass-phrases.

[+] quaunaut|10 years ago|reply
Using newer cracking techniques[1], pass-phrases are as quick to crack as many others. I honestly think password managers should not exist without the ability to randomly generate new passwords.

1. https://hashcat.net/oclhashcat/

[+] pveierland|10 years ago|reply
In 2012 I had to set up a password for BankID with DNB, (The Norwegian Bank), and used the automatically generated password "P0Q1u-A(Va,?mO?nIrBl" from KeePass. Their entropy estimate showed this password as very weak and did not accept it, even though much simpler passwords were shown as "strong". I sent them an email asking them about their entropy estimation, and complained about their implementation disallowing pasting of passwords.

They quickly replied that their entropy estimation was flawed in handling some characters and that they would fix this. They also said that copy/pasting was disallowed as this password should not be stored in any form. I sent them an email back arguing that this policy forces people to use weaker passwords, to which they replied that this would be taken to their product manager.

Now in 2016 they've updated their implementation which allows pasting passwords, making life easier.

[+] kkirsche|10 years ago|reply
As an avid password manager user, thank you for taking up this fight
[+] matthewmacleod|10 years ago|reply
That's really nice. I wish that more organisations responded in that kind of way; I certainly know that if someone wrote to us to complain about password or other security issues we'd certainly take it on board.

What are the reasons that such inquiries often get stonewalled - is it simple organisational complexity, and the difficulty of actually contacting the right individual?

[+] ikeboy|10 years ago|reply
https://www.troyhunt.com/the-cobra-effect-that-is-disabling/ nope.

(For the "type your new password twice to change it" fields there's somewhat of a justification: if someone mistypes their password then pastes it twice, they'll be locked out of their account, the point of the double field is to prevent typing errors, which means it should be typed twice.)

[+] chrismorgan|10 years ago|reply
But it doesn’t even matter if someone puts the wrong password in: if they get it wrong, you just nudge them to reset it and everyone’s happy.

Getting email address wrong is far more important, but far fewer things do the same doubling up on that.

[+] strathmeyer|10 years ago|reply
If they can paste it twice they can paste it three times.
[+] po|10 years ago|reply
My thought was that this stems from the idea that while the clipboard may be a legitimate and secure way to transfer across programs from a password manager to the password field, it is also an OS-wide shared space. After you tab away to the next app, it will have access to that password that remains in the clipboard. Browsers couldn't clear it (and apps aren't supposed to touch the user's clipboard anyway) so they discouraged it.

You could also alt-tab over to your IRC client (IRC because this was state of the art probably about when this practice started) and forget what is in your clipboard and paste+enter quickly.

I don't think this is a _good_ reason to do it, but that was why I thought it was done. I have no idea if that's the real reason it got started though.

[+] erichurkman|10 years ago|reply
Thus why 1Password and other password managers automatically clear the clipboard after X seconds. It's a handy feature.
[+] daenney|10 years ago|reply
The only reason I can think of is to infuriate every user using a password manager and help move the world to a place where stickies with passwords on your screen are commonplace (again).

Annoyingly so Apple has taken to this practice in certain OS password fields, like when you need to enter a password to decrypt a FileVault encrypted disk.

[+] jamessb|10 years ago|reply
I've resorted to selecting the field, pasting into Quicksilver [1] and using the "Type Text" action to get around these restrictions.

[1]: https://qsapp.com/

[+] niteshade|10 years ago|reply
Have you got Full Keyboard Access enabled? (Preferences > Keyboards > Shortcuts). Works fine for me on El Capitan.
[+] ivanhoe|10 years ago|reply
Another equally irritating problem are sites that use just keyup/down events for validation and when you paste a value (or if password manager fills it for you), they don't let you submit the form until you actually type something in that field.
[+] Strom|10 years ago|reply
Probably the same reason why some sites have a maximum password length of 8. Security design by people who are clueless about security.
[+] joshmn|10 years ago|reply
Not too long ago Ticketmaster had a minimum length of _4_.
[+] nextweek2|10 years ago|reply
Really this question should be asked in the relevant forum. A better place to ask might probably be: https://security.stackexchange.com/

The main reason is the clipboard is plain text and shared with everything. I recently had it last week where my other half was using my laptop. The cat walked over the keyboard and she wondered where this person's name had come from. Turns out it was from me using the clipboard 5 days earlier.

It dawned on me then, the clipboard needs a time limit. It needs to clear after an hour of inactivity, it needs to clear on resume.

[+] tony-allan|10 years ago|reply
None that I can see. It's a stupid practice to annoy users. I store my passwords in a password manager and copy and paste all the time.

I don't use software that disables paste.

[+] Johnny555|10 years ago|reply
I also find it annoying when sites make me type my email twice and won't let me copy-and-paste it the second time - I know my email address and can tell by looking at it if I've typed it correctly, I really don't need to type it again to prove that I can type it.
[+] dannysu|10 years ago|reply
Plenty of people don't even type their email correctly. Ask anybody that runs a service and sends email, then you'll see. E.g. "[email protected]" vs the typo missing the final 'm' "[email protected]"

But I do agree it's rather annoying and not allowing paste is even worse.

I actually trust my copy-and-paste more than me not making a typo because I am human. By not allowing paste, websites are asking me to potentially make mistakes.

Perhaps a better solution is for the browser to have a button on <input type="email"> fields to allow me to select from a list of emails I have. The browser needs to protect this data from being website accessible until I give permission for privacy reasons, but that would have been a way better UX.

[+] hjnilsson|10 years ago|reply
I always feel like this is protecting against the wrong userbase. A user who is advanced enough to want to copy-paste his email is not the same user who lacks the skills to type it correctly the first time
[+] cube00|10 years ago|reply
You might, plenty don't, and I have the bounce backs to prove it.
[+] sheepleherd|10 years ago|reply
Am I the only one here who memorizes passwords, types them in, and it works and they serve their purpose? I've got a few "schemes" to systematize a bit, I share passwords for non critical things, etc.

My biggest beef is the constant asking "do you want the browser to insecurely save this?" How did that become the default? No wonder people can't remember passwords if they never type them. I use many machines, and multiple browsers per machine and I don't synchronize them, so changing the remember passwords setting is such a chore I usually stick to clicking "remember never".

I don't think I can recall (dozens of years of computing) ever having a password hacked. Privilege escalation is the main threat.

[+] 98Windows|10 years ago|reply
It might discourage people from storing their passwords in plain text files and force them to memorise it.

It adds to the image that passwords are something special and secret if you cannot use basic functionality.

[+] tyingq|10 years ago|reply
At least one of the reasons is that Windows often picks up rich formatting characters if you cut/copy.
[+] teilo|10 years ago|reply
This is not a problem with Windows. This is only a problem if the site's implementation allows rich text, which I have never ever seen in a password field.

Windows will paste plain text unless the text field in question is explicitly identified as rich text.

[+] minikites|10 years ago|reply
TurboTax does this and it's very close to making me quit using it.
[+] bblough|10 years ago|reply
H&R Block Online also does this, and is the primary reason that I switched away from them this year.

Ironically, I switched to TurboTax, but didn't have the same issue because the login is done automatically via my bank login.

Does anyone know of a decent online tax app that doesn't disable the pasting of passwords?

[+] taf2|10 years ago|reply
Right click inspect element. Edit the value attribute pasting your password... Should work
[+] papageek|10 years ago|reply
I use autoit and automater to bind ctrl+alt+v to "type" from clipboard for just this reason.
[+] IanCal|10 years ago|reply
Was there a historical reason about JavaScript on other pages pulling what was in your paste buffer?
[+] livus|10 years ago|reply
Making it worse are some websites totally disabling right click. Very very annoying.
[+] fareesh|10 years ago|reply
My bank does this - no idea why. I use a bookmarklet to re-enable paste.
[+] regularfry|10 years ago|reply
My guess is to stop copying and pasting from Desktop\passwords.doc.
[+] Johnny555|10 years ago|reply
Is keeping a plaintext password file worse than forcing users to use a password that's easy to type and encouraging them to use the same password everywhere?
[+] dkopi|10 years ago|reply
It only stops the pasting, not the copying.