95 points · by MSeven · 8y ago · 124 comments
Regardless, even if you disagree with the scope of the law (which I do but not the intent of course), it is a very welcoming sign to see some actual enforcement happening. An under/subjectively enforced law of this size is much worse than a reasonably enforced one.
Hash passwords, not encrypt.
An encryption is reversible, a hash result isn't.
Ugh. A credit card company...really?
"8.4 Render all passwords unreadable during transmission and storage on all system components using strong cryptography"
It's also fair to say that the next few years will be a busy time for the government agencies tasked with GDRP enforcement.
(Assuming they do it properly, which falls within the responsibility of the relevant country)
Also, the ruling mentioned a reduced fine for cooperation and quick remediation. This probably wouldn't play out so well with a bloated structure and process, as you mentioned.
What you do is have one single function create the user, pick a random password, set it in the database (which in my case uses a perfectly sensible hash) and send the user email. The cleartext password in the mail comes from the function's local string variable, not from the database.
Whether doing this is a good idea is another question. IMO it usually isn't. But this kind of mail does not prove cleartext access.
If someone has access to your codebase you've got bigger problems than plaintext passwords anyway.
Corporate speak is just so funny. The bar for "safer than ever" is pretty low when your dev team hasn't heard of password hashing.
https://www.archynety.com/tech/why-knuddels-saved-his-passwo...
Which sounds odd. You could just hash/compare filter words.
I'm guessing similar issues too, like "no salt" or "same salt for all passwords".
Not that you need a security consultant to know passwords shouldn't be stored (at all, nevermind plaintext).
If they're doing that then they're likely being sloppy elsewhere, and by only paying €20k across the last n years they might have saved a €million.
If your company is in the same boat probably worth not bothering to get any security issues addressed. Why address security, just pay the much smaller fine if you ever get caught ...
I couldn't find Knuddels annual profit but they appear to have a dozen staff, which suggests to me the fine is too small.
But most places don't do dumb stuff like this because they've smartly chosen to be dumb. It's just thoughtlessness, just focusing on the wrong things. And one of those wrong things is "saving" money by being too cheap.
If a cheapskate client asked me to store passwords in plaintext on the theory they could save a few days of dev work, I'd love to be able to say, "Sorry, that's such a bad idea it's illegal. Fines start at €20k and go up." Their cheapness meter would swing into the red and they'd leave me alone.
If they company had actually chosen to be broadly negligent, it's clear the regulator could have imposed a much bigger fine, so I think your case is covered too.
On the other hand they seem to have at least as many open positions. This is either a sign of strong growth or a sign of inability to offer competitive pay. For a struggling pre-Facebook social web relic, it's easy to guess which one it is.
edit: title has been changed, nevermind
There are no input fields, no requests sent with personal information at all etc.
Everything that's questionable already comes over HTTPS on their site though, like Facebook content etc.
"If you don’t pay me X we’ll report you under environmental protection law and you’ll have to pay much more."
"If you don’t pay me X we’ll report you under labour regulations law and you’ll have to pay much more."
How would GDPR be special?
The proportion of businesses who are unintentionally violating it is unusually high.
Best strategy: Ignore the blackmailer and improve the security of your system and take privacy serious. (Doing such a cleanup also helps to reduce fines, thus also reduces leverage of blackmailer)
They were doing this so they could filter out the passwords from chats (i.e. to make it so users can't give out their passwords to other users). Not saying this justifies it, but it's interesting.
Also, you probably can't just try hashing each word, since there could be whitespace and punctuation in the password text, so I think you'd have to hash all possible substrings of each message to be able to reliably catch passwords.
Obviously, though, they shouldn't have been storing them in plaintext.
For every message typed, compute a running XOR of each sequence of L bytes (2 XOR’s per character, so as good as free). Whenever it equals X (about once every 64 letters or so, because typical text doesn’t use all bits in each byte equally), compute the salted hash of the last L characters, and compare with H.
Unicode and Unicode normalization will complicate that, but I think it should be fast enough for a chat.
You probably can also improve on that factor 32 by storing multiple XOR-like (but slightly more computationally expensive) hashes and computing multiple running totals.
Given that this is to protect users from falling for scammers who claim they need their password to help them, you may be able to run it on the user’s machine.
I fear, however, that a scammer will just ask them to type their password with a space inserted, spell it in the NATO spelling alphabet, or whatever. If you fall for a scammer, that won’t stop you from giving them your password.
It could however in general have a problematic side-effect if the password is a common word that could be guessed from surrounding context when censored that way. Something I'd find a lot more likely here than passwords with spaces.