3 ms·
It is also very common not to do things right. https://www.bbc.com/future/article/20160325-the-names-that-break-computer-systems https://www.bbc.com/future/arti
by graemep 3y ago
It is also very common not to do things right. https://www.bbc.com/future/article/20160325-the-names-that-break-computer-systems https://www.bbc.com/future/article/20160325-the-names-that-b...
That article is a few years old now and things should have got better, but even by 2016 everyone should have known properly sanitising inputs was critical for a decade or two.
- deleted 3y ago[deleted]
- junon 3y agoRight but that's not really an excuse not to do them right.
- pixl97 3y agoYou're working at the premise backwards... One of the systems is already wrong. The excuse not to do the system right is monetary cost of fixing the broken system. Out of all the excuses in the world, money wins.
- junon 3y agoEDIT: responded to the wrong comment, apologies. I really don't understand your point. If I hash on the browser the hash is still being sent to the server. A MitM or sniffing attack can just send the hash and log in. It doesn't actually protect the user at all unless they're re-using the password elsewhere. This also assumes that you're using a seeded hash of some sort, or a multi-round hasher with settings unique to every other website. Otherwise you're still going to run into stuffing and collisions. So for sites where the plaintext password is sensitive (password managers etc) that's important. For most sites, it's not inherently wrong not to hash passwords in the browser, though it does protect against password reuse. I'm not saying you're wrong, I just don't think you're accurately portraying the problem you're fixing.