Email or username:

Password:

Forgot your password?
Nicholas C. Zakas

Repeat after me: Blocking paste on a form textbox is not a security feature.

30 comments
Patrick H. Lauke

@nzakas and, incidentally, will likely then fail proposed WCAG 2.2 SC 3.3.8 Accessible Authentication w3.org/TR/WCAG22/#accessible-a

aburka 🫣

@nzakas What about the one I just had the misfortune to use that blocks paste, right click, *and backspace* in the password field?

aburka 🫣

@isaaccp @nzakas Inexplicably, it allowed me to highlight and overwrite my mistakes. So basically entering a password with a typewriter.

aburka 🫣

@isaaccp @nzakas Oh yeah, forgot I hate it when people fail to name-and-shame. It's #Smartsheet. And then once I finally got in, it turns out when a paid user invites you to comment, you can't comment with a free account, but it doesn't tell you that until you find an obscure FAQ. Screw you, Smartsheet.

Jennifer Kayla | Theogrin 🦊

@aburka @nzakas

There is one password field with which I work which fills in the entire space with asterisks, no matter how many characters have been typed.

This is not, as you might suspect, particularly conducive to first-try entry.

The Duke of Fall :d6:

@nzakas @lisamelton It has been my career experience that such systems are almost always mandated by people who don't have to use them daily, if at all. It is such a pervasive anti-pattern used by folks who (mistakenly or not) confuse "security theatre" for security.

hakerdefo

@nzakas

My bank is still not listening 🦻

They want their customers to use longish passwords and they also block the paste functionality 🔑

One can always drag-drop the text into the paste protected field without any problem. No need for extensions.

Rich Felker

@hakerdefo @nzakas Why is the browser letting the site distinguish between paste and dragged text? 🤔 🤬

Doug Tabacco

@nzakas *taps forehead* Can’t steal my info if I get annoyed and stop signing up!

Dreamwinder

@nzakas I want this reboosted at least once a week.

Ken Anderson

@nzakas @lisamelton AMEN! (I'm not religious but that's how strongly I agree with your statement. 😀)

parx :macos:

@nzakas Especially when you use a password manager. As if I'm going to type my 32 character random number/letter/symbol password by hand - I just open the console and stuff it in with JavaScript lol

Mingo 🦩

@nzakas it sort of is, it’s keeping me out of their system.

Rob Carlson

@nzakas @colarusso_algo Just went into the inspector and removed the paste event override from three input boxes on my insurance company’s site so I didn’t have to type my account information by hand and probably mess it up. The one I have in my clipboard is accurate, I promise.

Assal Horizontology

@nzakas I hacked together an Alfred workflow a couple months back after getting particularly pissed at a site that did this. The workflow turns the clipboard into simulated keystrokes and uses AppleScript to type them.

I get a little glee every time I use it on a site.

Stuart Celarier

@nzakas Blocking paste on a form textbox is not a security feature.
#SecurityTheater

Don Marti

@nzakas if you don't let me paste from my password manager then my password on your site is xyzzy123!

Spring

@nzakas

OMG rage. They're just ensuring that I eff it up. Copy/paste is a survival skill for me.

Rich Felker

@nzakas Flip side: creating an API that allows sites to block paste or otherwise distinguish between paste and manual entry of characters is malice by the browser.

Go Up