4 ms·
> The advisory went on to say that "site keys" are stored in unencrypted, "cleartext" form that can be recovered from the lock cylinders. Why do developers kee
by PhasmaFelis 12y ago
> The advisory went on to say that "site keys" are stored in unencrypted, "cleartext" form that can be recovered from the lock cylinders.
Why do developers keep doing this? As a programmer, I've never worked with crypto implementation and I don't really know much about it on a practical level, but the one thing I do know is that you never store anything sensitive in plaintext. Ever! So how do so many devs who have, at the very least, spent far more time than I have Googling about crypto implementation, keep missing this?
It's as if there was an epidemic of wet kitchen floors sweeping the nation because thousands of plumbers, working independently, all repeatedly forgot to install traps under their sinks. Why does this one rank-amateur mistake keep happening?
- madez 12y agoIf you knew how cars are made...
- swamp40 12y agoWhen you start decapping chips and hitting them with lasers, there are all sorts of "cleartext" data you will be able to obtain.
- hvidgaard 12y agoThat is true, but considering that this isn't your average website, but high security certified products there should have been security trained professionals working on the hardware, at the very least when they got the notice - they have no excuse.
- Pyxl101 12y agoI don't see how this is an amateur mistake. Presumably the key material on the device needs to be available to its onboard computer. So, the computer needs to load it or work with it. You could encrypt it, sure, but with what key? Another key stored locally in plaintext? Could you explain what alternative should be used in this case?
- poizan42 12y agoUse a salted hash like everybody else does with passwords?
- Pyxl101 12y agoThanks. Is it just a plaintext password? The exact mechanism wasn't obvious to me from the article, though I see the tech report has more detail. If authentication is based on storing a password on the key and sending it over the wire, then there's nothing to prevent capturing that and cloning a key. I guess that's the point. I agree that if the auth is a password challenge, then hashing it will prevent recovery of the key from the cylinder though. Sounds like their lock is really just a "digital key", with wires sending bits that take the place of tumblers.
- cheald 12y agoYou can't decrypt information or validate a public key's signature with the hash of a private key. You need the actual private key unencrypted at some point; we solve this in most of our certs by encrypting them with a password that the user has to enter to decrypt, but access to the unencrypted private key is absolutely required at some point. Hashing is for passwords, not for keys.