News for hackers. Stuff that matters.
Re:Substack's UI and 1Password temporarily cost me $2k by TechBro8615 on Monday March 22, 2021 @09:13PM (#26549750)
Yikes. I love my password manager, but I decided when I got it that I was never going to use the browser extensions. Putting your password manager anywhere near your web browser just seems like insanity to me (all the exploit write-ups I recall about password managers were related to browser extensions and sandbox escapes).

This seems like another reason. It's not worth it. Keep the password manager in its own app and apply the tiny extra effort of pasting the password from there.

Re:Substack's UI and 1Password temporarily cost me $2k by askmike on Monday March 22, 2021 @09:23PM (#26549828)
To counter this: if you happen to find yourself on the phishing domain facebo0k.com and you end up copying your password into that.. Browser extensions guard for this better than we can.
Re:Substack's UI and 1Password temporarily cost me $2k by flemhans on Monday March 22, 2021 @09:31PM (#26549887)
Yes, password managers are way safer than copy-pasting. You don't want something as sensitive as a password in your clipboard buffer, either.
Re:Substack's UI and 1Password temporarily cost me $2k by reilly3000 on Tuesday March 23, 2021 @12:33AM (#26551158)
Gah what then? I use strong passwords but almost all of them flow through my clipboard.
Re:Substack's UI and 1Password temporarily cost me $2k by Saris on Tuesday March 23, 2021 @09:16AM (#26554581)
I used to use Keepass with auto-type. I had a hotkey for it, and it would recognize the site based on the browser window title.

That would probably be the best of both, no clipboard, and no browser addons.

Re:Substack's UI and 1Password temporarily cost me $2k by lawtalkinghuman on Tuesday March 23, 2021 @09:47AM (#26554885)
Instead of checking the TLS certificate or the domain, you are depending on fak3b00k.com not implementing the same title tag as Facebook?
Re:Substack's UI and 1Password temporarily cost me $2k by Saris on Wednesday March 24, 2021 @05:56PM (#26573495)
That's something to think about. But I'm not sure how I would end up on fak3b00k.com unless something changed my bookmark for it, or I really mistyped it but if I did that the URL being different is a dead giveaway.
Re:Substack's UI and 1Password temporarily cost me $2k by abdullahkhalids on Tuesday March 23, 2021 @02:40AM (#26551790)
Some password managers will type the username/password into the browser (through a virtual keyboard I think), not copy-paste them to protect against clipboard attacks. Eg. Keepasssc
Re:Substack's UI and 1Password temporarily cost me $2k by 3np on Tuesday March 23, 2021 @02:18AM (#26551665)
There are non-browser-extension password managers that still emulate you typing on your keyboard, rather than going through clipboard.

Personally I use rofi-pass to access GNU pass passwords (so just a hotkey and search for password name)

I'd warmly recommend it (or whatever other client you use for GNU pass) but I'm sure you can find similar functionality for any other decent password manager.

Re:Substack's UI and 1Password temporarily cost me $2k by mPReDiToR on Tuesday March 23, 2021 @07:50AM (#26553908)
Firefox extension, Passhash NG.

Makes them easy to use, with no saved PW.

Re:Substack's UI and 1Password temporarily cost me $2k by jhanschoo on Tuesday March 23, 2021 @01:49AM (#26551544)
I a simple algorithm to generate a password based on the name of the service you are using, interleaved with a constant master password you remember. You can do the same thing with a password-manager password + clipboard, interleaved with a constant master password you remember, which should be even better.
Re:Substack's UI and 1Password temporarily cost me $2k by kgwxd on Monday March 22, 2021 @09:58PM (#26550104)
Mine clears the clipboard after 10 seconds.
Re:Substack's UI and 1Password temporarily cost me $2k by ProtoAES256 on Monday March 22, 2021 @10:52PM (#26550469)
You do realize that in 10 seconds your computer can achieve a lot of stuffs right?
Re:Substack's UI and 1Password temporarily cost me $2k by treesprite82 on Tuesday March 23, 2021 @01:02AM (#26551310)
I don't think a webpage can read clipboard without the user manually pasting.

If there's some malicious desktop program running on your machine at the same time as the password manager then you're probably screwed regardless of whether the password passes through the clipboard - but maybe there's some subtleties I'm missing here.

Re:Substack's UI and 1Password temporarily cost me $2k by flemhans on Tuesday March 23, 2021 @10:04AM (#26555112)
I've accidentally pasted sensitive passwords enough times that I know the procedure is prone to errors.

If I have to do it, I immediately copy something else right afterwards, to avoid an accidental paste later on.

Re:Substack's UI and 1Password temporarily cost me $2k by treesprite82 on Tuesday March 23, 2021 @11:26AM (#26556125)
10 seconds auto-clear (which is configurable) is short enough to prevent me accidentally pasting onto some other site.

Could be better if it auto-cleared after a paste, but not sure how feasible that would be.

Re:Substack's UI and 1Password temporarily cost me $2k by fsh on Tuesday March 23, 2021 @01:42AM (#26551499)
For example it could just read all the passwords from the password manager's UI.
Re:Substack's UI and 1Password temporarily cost me $2k by pyhtel on Tuesday March 23, 2021 @05:20AM (#26552768)
Between Keepass, 1passwword, and lastpass I've never seen a password manager that just shows the password without the user explicitly choosing to reveal it
Re:Substack's UI and 1Password temporarily cost me $2k by EricE on Tuesday March 23, 2021 @02:29PM (#26558430)
1password has the option to do so and I do it on my home desktop computer. Obviously on mobile devices it would be a bad idea and on those I leave that option in it's default, disabled state :)
Re:Substack's UI and 1Password temporarily cost me $2k by abdullahkhalids on Tuesday March 23, 2021 @02:41AM (#26551798)
The purpose of clearing clipboard is so you don't accidentally paste it into a chat window or something. Not to protect against malicious programs.
Re:Substack's UI and 1Password temporarily cost me $2k by bfdm on Monday March 22, 2021 @10:58PM (#26550505)
Maybe we should take the best of both worlds then: an extension that only knows which domains you have passwords saved for, but not the account or PW. It just serves as a red flag if the domain is suspect.
Re:Substack's UI and 1Password temporarily cost me $2k by paulryanrogers on Monday March 22, 2021 @11:19PM (#26550652)
This is how the Keepass Helper extension has worked for years: putting the domain in the RHS of the titlebar. Then with autotype set to match that you can autotype from the global hotkey. Keepass 2 can even split the credentials between key presses and pasting.

There are other URL in title extensions for most browsers. And they're simple enough you can audit them or write your own.

Re:Substack's UI and 1Password temporarily cost me $2k by hombre_fatal on Monday March 22, 2021 @09:40PM (#26549966)
Password managers aren't nearly intelligent enough to be used without copy and paste for sensitive forms.

One example is how almost every password manager including the built-in one in most browsers will assume that if there's a type="password" field, then the previous sibling field must be the username. Sometimes they'll even pick a field far away in the DOM like your chatbox input to autofill with the username.

So imagine a form like this:

    Amount to transfer: <input type="number">
    From account ID: <input type="text">
    Confirm password: <input type="password">
    <button type="submit">Submit</button>
I found that there's no good hackless way to allow a password manager to autofill the password without touching the other fields with a username or some other quirk like just clearing your inputs. Even a fix like opening a modal with the lone password confirmation field doesn't necessarily fix it in all browser/OS configurations.

Password managers are braindead and browsers don't give you any tools to help.

Re:Substack's UI and 1Password temporarily cost me $2k by Cldfire on Monday March 22, 2021 @10:55PM (#26550491)
> One example is how almost every password manager including the built-in one in most browsers will assume that if there's a type="password" field, then the previous sibling field must be the username. Sometimes they'll even pick a field far away in the DOM like your chatbox input to autofill with the username.

Note that this behavior is defined as part of the `autocomplete` standard. https://html.spec.whatwg.org/multipage/form-control-infrastr...

> an input element whose type attribute is in the Text state that is followed by an input element whose type attribute is in the Password state

> New autofill field name: "username"

The intent isn't to pick a field far away in the DOM, though, so any autofill implementation doing that isn't being restrictive enough.

Re:Substack's UI and 1Password temporarily cost me $2k by hombre_fatal on Monday March 22, 2021 @11:15PM (#26550616)
Nice note. One problem is that you are left without options, only hacks, to work around this heavy handed behavior. It wouldn't be so bad if you could opt-out with autocomplete="off".

And even if it did work, a spec is always underspecified even for the password manager who wants to follow it 1:1, so even in a best case scenario, you don't have implementation consensus. For example, you would think password manager heuristics wouldn't look outside the current <form> to assume the username field, but some do on some browsers.

The end result is that if you have a need that isn't the general case, you end up having to trade away UX to cater to software.

Re:Substack's UI and 1Password temporarily cost me $2k by colejohnson66 on Tuesday March 23, 2021 @08:36AM (#26554274)
> Note that this behavior is defined as part of the `autocomplete` standard.

Yes, but it’s my understanding that Chrome ignores this attribute because some website authors abuse it to disable autofill on the login pages because “security”. I’ve also seen some places disable pasting of a bank’s routing and account numbers because “security”. It’s actually more secure for me to copy-paste those numbers than type them because I can’t make a mistake then!

It’s a tough call because I hate when websites do that, but I also want them to be able to disable it in the right places for security.

Re:Substack's UI and 1Password temporarily cost me $2k by asiachick on Monday March 22, 2021 @11:08PM (#26550572)
Yes, and the point of putting in the standard is so that it's documented how to author your website. Unfortunately, some not insignificant number of UI/UX designers want to push their special flow on users and so we get these incompatibilities.

Hopefully the specs and expectations will evolve to the point that if your site doesn't follow the spec no one will use it. I can certainly imagine Apple/Google/Microsoft/Firefox having a semi-seamless sign up and failing to follow the standard means you plenty of users turn away

Re:Substack's UI and 1Password temporarily cost me $2k by hombre_fatal on Tuesday March 23, 2021 @12:10AM (#26551004)
The spec is underspecified for basic edge cases, like any spec, and it's very hard to have implementation consensus.

This stuff is supposed to improve the UX. Yet the reality is that even when building basic forms, every website has to test and solve the sort of problems shown in TFA.

How much of the spec does every web developer in the world have to read to know that password managers should or shouldn't try to fill in credit card expiry/cvv in a hidden input? Does the spec even say anything about that? 1Password will ignore a `display: none`, by the way. Can this be quick-fixed by ensuring hidden inputs also have `display: none`? That's something every website trying to consider good autofill UX gets to figure out themselves if they even care.

Unfortunately "just follow the spec" does very little to block off the rabbit holes you'll find if you try to perfect UX on even basic forms, else I might agree with you.

Re:Substack's UI and 1Password temporarily cost me $2k by DangitBobby on Monday March 22, 2021 @09:43PM (#26549980)
I find that both Bitwarden (personal use) and 1password (work use) do a very good job of filling in login forms.
Re:Substack's UI and 1Password temporarily cost me $2k by hombre_fatal on Monday March 22, 2021 @09:56PM (#26550084)
1Password was one of my test extensions and the one I use every day. It works most of the time because username/password combos are the most common autofill configurations.

So common that most password managers don't consider the case where you want to autofill a password without a matching username field on the page. "Password confirmation" being the classic example.

They just don't handle anything other than the main case very well.

Re:Substack's UI and 1Password temporarily cost me $2k by DangitBobby on Monday March 22, 2021 @10:13PM (#26550204)
Interesting. The weirdest site I use on a regular basis is Mailgun and it has this scrolling form which isolates entry for email/password/2fa (which, as an aside, I hate) and it gets it right every time. I can't remember any instances of it going wrong, actually.
Re:Substack's UI and 1Password temporarily cost me $2k by 3np on Tuesday March 23, 2021 @02:21AM (#26551685)
You can still use something like passmenu[0] bundled with GNU pass, bind it to a hotkey and it fills it in as if you were typing on your keyboard, no clipboard involved.

[0] https://git.zx2c4.com/password-store/tree/contrib/dmenu/READ...

Re:Substack's UI and 1Password temporarily cost me $2k by zwayhowder on Tuesday March 23, 2021 @12:32AM (#26551149)
Lastpass used to have an option for autofill to only fill empty fields, not sure if it is still there as I moved on a year ago but it stopped a little of that annoyance.
Re:Substack's UI and 1Password temporarily cost me $2k by ramraj07 on Monday March 22, 2021 @11:21PM (#26550668)
After learning about how every app in your PC has unfettered un monitored access to the clipboard why in gods name would you do that? I explicitly make a point to never copy any password to the clipboard!
Re:Substack's UI and 1Password temporarily cost me $2k by spideymans on Monday March 22, 2021 @11:38PM (#26550815)
I'm still utterly perplexed about why every major operating system handles the clipboard this way. It's such an obvious privacy issue, and the fix seems really simple: only allow clipboard access when the user explicitly grants access through a system-provided user interface (whether that be a dialogue box, menu item or keyboard shortcut)

Apple's iOS 14 uses the half-solution of notifying the user after an application has read the clipboard. But at that point the end user is already a step behind the attacker, and mitigations may no longer be possible. Nevermind that this solution is dependant on the user noticing and understanding the implications of the clipboard access notification (the novice user is likely oblivious to the security risks)

Re:Substack's UI and 1Password temporarily cost me $2k by MontagFTB on Monday March 22, 2021 @11:25PM (#26550709)
Any password of sufficient strength would be slow and error-prone to copy manually. What’s the middle ground?
Re:Substack's UI and 1Password temporarily cost me $2k by JohnTHaller on Monday March 22, 2021 @11:36PM (#26550798)
On a desktop, you can use KeePass and its variants to "auto-type". It'll switch focus to the last app you were in and type your username, a tab, your password, and then enter. No extensions or clipboard required. Just hit CTRL-SHIFT-V after highlighting the entry.
Re:Substack's UI and 1Password temporarily cost me $2k by ludocode on Tuesday March 23, 2021 @02:03AM (#26551596)
I tried using this but the final "enter" made me too uncomfortable. I really wish it was optional so I could verify where it just typed the password before submitting. After accidentally sending my password in the wrong field/window a couple of times I stopped using it entirely. Now I just copy-paste :(
Re:Substack's UI and 1Password temporarily cost me $2k by Moeg on Tuesday March 23, 2021 @02:24AM (#26551706)
You can edit how and what KeePass types, I always remove the final enter for comfort and safety reasons.
Re:Substack's UI and 1Password temporarily cost me $2k by ludocode on Wednesday March 24, 2021 @01:37AM (#26563962)
Ah wow, thanks for the tip. I guess you can edit the root group to change it globally? Thanks, I'll try this.
Re:Substack's UI and 1Password temporarily cost me $2k by PowerBar on Tuesday March 23, 2021 @04:01AM (#26552278)
keepassxc has extra options in the auto-type menu for "username", "username<enter>", "password" and "password<enter>" in addition to the normal "username<tab>password<enter>"
Re:Substack's UI and 1Password temporarily cost me $2k by edoceo on Monday March 22, 2021 @11:39PM (#26550820)
That's paste
Re:Substack's UI and 1Password temporarily cost me $2k by sjs382 on Tuesday March 23, 2021 @12:17AM (#26551055)
It looks like paste and it's almost the same from the user perspective, but the data never makes it to the clipboard, where it would be available to every running application.
Re:Substack's UI and 1Password temporarily cost me $2k by shakna on Tuesday March 23, 2021 @01:35AM (#26551469)
From what I can see, KeePass does use the clipboard. [0]

[0] https://github.com/dlech/KeePass2.x/blob/VS2019/KeePassLib/N...

Re:Substack's UI and 1Password temporarily cost me $2k by sjs382 on Tuesday March 23, 2021 @02:24AM (#26551708)
Sorry, I didn't mean to speak with any authority on the specifics of KeePass. I'm neither a developer nor a user. I was just explaining the parent.

That said, the implementation probably differs on different platforms. 1Password, for example, uses a virtual "keyboard" on Android.

Re:Substack's UI and 1Password temporarily cost me $2k by JohnTHaller on Tuesday March 23, 2021 @11:07AM (#26555926)
That's a different option (CTRL-C). You can copy and paste the username and password. There's a default clearing timeout that's more to ensure the user doesn't accidentally paste it elsewhere. The auto-type option I mentioned is different.
Re:Substack's UI and 1Password temporarily cost me $2k by shakna on Wednesday March 24, 2021 @09:10PM (#26575365)
> The auto-type option I mentioned is different.

It actually falls back to the clipboard [0], in a huge number of situations [1]. Basically, if Windows Forms isn't available/reliable.

[0] https://github.com/dlech/KeePass2.x/blob/VS2019/KeePassLib/U...

[1] https://github.com/dlech/KeePass2.x/blob/VS2019/KeePassLib/U...

Re:Substack's UI and 1Password temporarily cost me $2k by thaumasiotes on Tuesday March 23, 2021 @12:19AM (#26551069)
> No extensions or clipboard required.

Paste draws from the clipboard.

Re:Substack's UI and 1Password temporarily cost me $2k by whitexn--g28h on Tuesday March 23, 2021 @12:55AM (#26551277)
You’re confusing console paste with windows paste
Re:Substack's UI and 1Password temporarily cost me $2k by edoceo on Tuesday March 23, 2021 @01:25AM (#26551416)
Yep, now I get it. Some addon does this override
Re:Substack's UI and 1Password temporarily cost me $2k by Hackbraten on Tuesday March 23, 2021 @03:13AM (#26551979)
Use a browser extension. For example, the 1Password extension uses (authenticated) IPC to talk to the app and then injects the password into the DOM directly.
Re:Substack's UI and 1Password temporarily cost me $2k by ramraj07 on Tuesday March 23, 2021 @12:35AM (#26551168)
Xkcd to the rescue? https://xkcd.com/936/

Gfycat already generates memorable URLs so it’s definitely possible. I myself do it manually nowadays (ie generate phrase password to be stored in manager so I can copy it manually if needed)

Re:Substack's UI and 1Password temporarily cost me $2k by chillfox on Tuesday March 23, 2021 @12:23AM (#26551096)
There is no way I could have convinced the people I have to use a password manager without the browser extension. So for those people it was either same password on all sites or a password manager with a browser extension.
Re:Substack's UI and 1Password temporarily cost me $2k by SPBS on Monday March 22, 2021 @10:16PM (#26550224)
I've never encountered any autofill instance where the effects of autofill wasn't immediately apparent (usually it's just the username and password). Having a special hidden fields in your form seems like a Bad Idea, but what is worrying is that there is nothing stopping more devs from implementing something like this. The only reason why we don't see it more often is probably because it takes more effort to make a "smart" form like this.
Re:Substack's UI and 1Password temporarily cost me $2k by neya on Tuesday March 23, 2021 @02:11AM (#26551640)
I use Firefox's own password manager (https://www.mozilla.org/en-US/firefox/lockwise/) inbuilt into the browser. I think it's a better compromise than having to expose sensitive credentials into my clipboard. IT works across devices too, so there's no copy pasting on my Android device which god forbid is probably reading my clipboard too (I know Facebook used to do that).

I do not see a reason to copy paste in any use case at all.

Re:Substack's UI and 1Password temporarily cost me $2k by pitkali on Tuesday March 23, 2021 @05:50AM (#26552997)
I just have autofill disabled. To fill in the password, I need to actually click some buttons.
Re:Substack's UI and 1Password temporarily cost me $2k by walrus01 on Monday March 22, 2021 @09:32PM (#26549903)
this is why I use a password manager that has no network connectivity whatsoever, and no browser integration. keepassx with a v2.0 keepass format file.

it works from a local file on disk. yes, it's more inconvenient if I am away from the computer it lives on, and I need to update a password, I have to connect the VPN to my home office, ssh to it, and run 'kpcli' (a keepass format command line program), or run keepassx in a vnc-over-ssh session.

but that hassle is worth it in my opinion.