News for hackers. Stuff that matters.
Re:The “Cobra Effect” that is disabling paste on password fi... by fit2rule on Sunday June 26, 2016 @02:51AM (#11979687)
One reason to dissuade users from using the clipboard to paste passwords is this: the password stays in the clipboard.

Not all users realize this, and so .. don't 'clear' the clipboard after logging in .. which means their password is still available to anyone else who might use that computer.

Re:The “Cobra Effect” that is disabling paste on password fi... by NhanH on Sunday June 26, 2016 @03:05AM (#11979731)
That seems like an incredibly weak argument: if an attacker has physical access to the machine, all bets are off. How do you know that there wasn't anything installed to MITM everything already?
Re:The “Cobra Effect” that is disabling paste on password fi... by lisivka on Sunday June 26, 2016 @02:57AM (#11979710)
So, login form can just clear clipboard instead in onsubmit() handler.
Re:The “Cobra Effect” that is disabling paste on password fi... by danjc on Sunday June 26, 2016 @03:17AM (#11979762)
That's an interesting idea actually. My first response was that you can't freely interact with the clipboard but you can set it provided you do it in response to a js event so in theory that is possible. The only problem is that you'd need to be sure the clipboard did actually contain the password because of course you can't read it. I guess you can log whether onpaste fired and then if the login button is clicked with a second or two, clear the clipboard.
Re:The “Cobra Effect” that is disabling paste on password fi... by danjc on Sunday June 26, 2016 @03:25AM (#11979780)
And by 'clear', I mean add a textbox, set its value to an explanatory message '{app} cleared the clipboard because it contained your password' and then execCommand on it.
Re:The “Cobra Effect” that is disabling paste on password fi... by justaboy21 on Sunday June 26, 2016 @03:12AM (#11979754)
You can't alter the clipboard from JS (you can on browsers that support the execCommand API but still).
Re:The “Cobra Effect” that is disabling paste on password fi... by happyslobro on Sunday June 26, 2016 @06:17AM (#11980149)
Hopefully there is nothing important in the clipbkard, like some data that the user will attempt to submit a second time after logging in. It sounded like a good idea at first, but now I want my +1 back :p
Re:The “Cobra Effect” that is disabling paste on password fi... by thameera on Sunday June 26, 2016 @11:13AM (#11981107)
Of course. The implementation should check if the clipboard content is equal to the entered password.
Re:The “Cobra Effect” that is disabling paste on password fi... by stephengillie on Sunday June 26, 2016 @03:05AM (#11979730)
I've written short Powershell functions that watch your clipboard and send it over UDP to a remote Powershell session. Does your favorite Powershell module have something similar? It could simply load with Powershell and start logging your clipboard.
Re:The “Cobra Effect” that is disabling paste on password fi... by askvictor on Sunday June 26, 2016 @05:43AM (#11980055)
Lastpass is quite clever in that whenever you copy a password into clipboard, it clears the clipboard after a little time.