by tomglynch · 7y ago · 0 comments
Why is this not done?
The only way round this is to make sure that B doesn't have any information which can be used to compromise A, by sending the password from an external program.
(You could just about achieve this from client-side salt+hash as an external program instead of a password manager, but then it's a big pain to change passwords when B is compromised.)
Grandparent is also right that your users password can still be compromised on other services, giving an attacker a way into your own. Password managers don't have that problem.
It doesn't actually add any security is the short story.
Yes, and by that it appears random. Which is exactly what we want and what password managers provide.
> just inject some JS or redirect a CDN or...
This is the case anyway with regular passwords.
> It doesn't actually add any security is the short story.
Are you sure?
Good sources of randomness, that aren't susceptible to side-channel attacks have only really appeared in browsers (Crypto.getRandomValues) in March of _this_ year.
Random is only good if it is a decent CRNG, and we haven't had time to roadtest if we can rely on that yet.
Bad random is predictable, in which case you're removing security.
> Are you sure?
Yes. You're _adding_ a platform that can be attacked, but not introducing anything that is more secure than what is already possible.