News for hackers. Stuff that matters.
Re:Don't Hijack Browser Keyboard Shortcuts by emsy on Wednesday April 09, 2014 @09:17AM (#7559042)
Far worse are websites like Battle.net that hijack the onpaste events to prevent pasting passwords. Hijacking keyboard shortcuts may cause inconveniences but prohibiting password pasting is a security flaw.
Re:Don't Hijack Browser Keyboard Shortcuts by chill1 on Wednesday April 09, 2014 @09:56AM (#7559263)
Preventing users from pasting their passwords is quite irritating. I don't even understand the idea behind it. Most likely some developer saw a non-technical user copying/pasting from a plain-text password file, and "had a great idea" to discourage that kind of behavior.

To get around sites that do this, I inspect the HTML and add my password via the value="" attribute on the input element.

Re:Don't Hijack Browser Keyboard Shortcuts by blueskin_ on Wednesday April 09, 2014 @10:44AM (#7559568)
I use KeePass' autotype.
Re:Don't Hijack Browser Keyboard Shortcuts by johndoeee on Wednesday April 09, 2014 @09:27AM (#7559094)
I wanted to use a random password, unable to paste it, I pasted it into my firstname field and just typed while reading it from there.

Anyways, I forgot to remove it again so now my first name is <firstname><oldpassword>.

You can't change your name after your account has been created.

Re:Don't Hijack Browser Keyboard Shortcuts by blueskin_ on Wednesday April 09, 2014 @10:44AM (#7559567)
KeePass has a great autotype feature that perfectly bypasses that by simulating real keyboard input.

When it comes to anti-clipboard, I really hate sites that make you enter your email address twice (Which is retarded anyway; WHY THE FUCK would I not know/check what I am typing?; it's a cleartext field, you might as well have 2 fields for everything up to first name FFS...), then stop you copying emailfield1 to emailfield2. Fortunately, most still let me click and drag from 1 to 2.

Re:Don't Hijack Browser Keyboard Shortcuts by dllthomas on Wednesday April 09, 2014 @01:45PM (#7560880)
What I really hate is accounting ledgers that make me enter things it two places. Geeeze.

The reason email is special is because if that's wrong there's often no good way to fix it (and certainly no way to notify you). Whether that's sufficient motivation is a matter of judgement, but it's clearly different than first name.

Re:Don't Hijack Browser Keyboard Shortcuts by id on Wednesday April 09, 2014 @09:30AM (#7559107)
PayPal is also doing this in their "change password" form.
Re:Don't Hijack Browser Keyboard Shortcuts by 67726e on Wednesday April 09, 2014 @09:20AM (#7559061)
Do tell, how is that a "security flaw"?
Re:Don't Hijack Browser Keyboard Shortcuts by maxerickson on Wednesday April 09, 2014 @09:30AM (#7559106)
A lot of people that use password managers don't know their passwords (I only know a few of mine). Maybe calling it a flaw is too severe, but it isn't doing those folks any good.
Re:Don't Hijack Browser Keyboard Shortcuts by 67726e on Wednesday April 09, 2014 @11:23AM (#7559829)
I'm curious as to how that would affect a password manager? I was always under the impression that they would directly manipulate the DOM (or perhaps alter the outgoing request)?
Re:Don't Hijack Browser Keyboard Shortcuts by aestra on Wednesday April 09, 2014 @11:29AM (#7559881)
No.

Here is a workflow:

1) Download keypass.

2) generate random password (however you do that...)

3) copy password into web form.

4) copy passwords into keypass and save.

for logging in:

1) open keypass

2) copy password

3) paste into webform.

Typing the passwords leaves room for errors. Truly random passwords are copied and pasted. Words are typed.

Re:Don't Hijack Browser Keyboard Shortcuts by mnutt on Wednesday April 09, 2014 @09:28AM (#7559100)
It could be that some people use password managers that require pasting. (though many don't) It could lead to people using passwords that are easier to remember if their password manager doesn't work.
Re:Don't Hijack Browser Keyboard Shortcuts by dllthomas on Wednesday April 09, 2014 @01:43PM (#7560869)
Hm, this set me wondering how much risk there is passing the passwords through the copy-paste mechanism itself. Probably not terribly much more than passing through the keyboard and IO subsystems, though. Still, I know with X selection buffers, when data is requested the application it's requested from can run arbitrary code to generate (or check!) it and is passed the window-id requesting[0]. It seems like a password manager could make use of this to implement an ACL and lock things down tighter - do any do this?

[0]: http://tronche.com/gui/x/icccm/sec-2.html#s-2.4

Re:Don't Hijack Browser Keyboard Shortcuts by 67726e on Wednesday April 09, 2014 @11:23AM (#7559823)
I guess that is something of a double-edged sword then. You might force someone to use a weaker password, but then hopefully they wouldn't be keeping it in a place where they could simply copy/paste it. This really starts to delve into the whole "security is a gradient with tradeoffs" situation.
Re:Don't Hijack Browser Keyboard Shortcuts by aestra on Wednesday April 09, 2014 @11:33AM (#7559917)
>hopefully they wouldn't be keeping it in a place where they could simply copy/paste it.

???

Passwords can be simple copy/pasted from.

Encrypted files can be simply copy/pasted from.

Re:Don't Hijack Browser Keyboard Shortcuts by 67726e on Wednesday April 09, 2014 @11:39AM (#7559953)
I'm assuming in this scenario that they would be keeping passwords in a plaintext file. If they kept passwords in an encrypted file, wouldn't they need to decrypt it? Wouldn't you presumably have a strong password to decrypt it? Where is that kept? How strong must one's password be when that password is keeping other passwords secure? If they can remember that password, why can they not remember others?
Re:Don't Hijack Browser Keyboard Shortcuts by maxerickson on Wednesday April 09, 2014 @01:36PM (#7560822)
Remembering 1 password is easier than remembering dozens of them. Reusing passwords is not a great idea, so dozens of passwords is a real concern.

It's also the case that disabling paste doesn't do anything to stop a user from storing their passwords in an unencrypted file.

Re:Don't Hijack Browser Keyboard Shortcuts by dllthomas on Wednesday April 09, 2014 @01:39PM (#7560838)
Because remembering one strong password is way easier than remembering 50 strong passwords.
Re:Don't Hijack Browser Keyboard Shortcuts by Fuxy on Wednesday April 09, 2014 @09:59AM (#7559279)
Better yet what's the point of doing that anyway a pasted password is likely to be more complex (read as secure) than a regular one.
Re:Don't Hijack Browser Keyboard Shortcuts by 67726e on Wednesday April 09, 2014 @11:21AM (#7559816)
I simply asked how that constituted a security flaw, but thanks for the snark.
Re:Don't Hijack Browser Keyboard Shortcuts by aestra on Wednesday April 09, 2014 @11:31AM (#7559900)
I saw no snark.
Re:Don't Hijack Browser Keyboard Shortcuts by hyperpape on Wednesday April 09, 2014 @10:23AM (#7559434)
Anything that makes passwords harder to do right without simultaneously blocking some attack worth caring about is bad for security. Two of the biggest problems in security are that it's hard to do things the right way and that people just don't understand it.

Whether you want to call it a "security flaw" is not obviously an important question.

Re:Don't Hijack Browser Keyboard Shortcuts by aestra on Wednesday April 09, 2014 @11:21AM (#7559813)
I am not sure why you are getting downvoted for asking a simple question.

It could be a security flaw because you discourage using passwords that are truly randomly generated.

Re:Don't Hijack Browser Keyboard Shortcuts by 67726e on Wednesday April 09, 2014 @11:25AM (#7559846)
Neither am I...

Wouldn't using a random password and copy/pasting it imply they are storing it somewhere unsafe?

Re:Don't Hijack Browser Keyboard Shortcuts by aestra on Wednesday April 09, 2014 @11:27AM (#7559866)
No. My passwords are stored very safely.

Edited: you were probably downvoted for using scare quotes.

Re:Don't Hijack Browser Keyboard Shortcuts by blueskin_ on Wednesday April 09, 2014 @10:47AM (#7559584)
It discourages password manager use.
Re:Don't Hijack Browser Keyboard Shortcuts by 67726e on Wednesday April 09, 2014 @11:20AM (#7559808)
How? Wouldn't a password manager manipulate the DOM directly?
Re:Don't Hijack Browser Keyboard Shortcuts by blueskin_ on Wednesday April 09, 2014 @11:22AM (#7559821)
KeePass can use a virtual keyboard to type into stupidly designed fields (no need for DOM), but not all of them. Many use the clipboard to some degree.
Re:Don't Hijack Browser Keyboard Shortcuts by aestra on Wednesday April 09, 2014 @11:36AM (#7559936)
No.