Tell HN: Hacker News Profile Leak (Fixed)
170 points| kogir | 11 years ago
Affected profiles were leaked on one of 10/12, 10/20, or 11/02. In every case, the leaked data was overwritten 30 seconds later by the subsequent update batch. The leaked password hashes were salted bcrypt (FreeBSD's default libcrypt implementation). Though we think the risk is low we encouraged affected users to change their password on HN as well as on any other sites where they used the same password.
Many thanks to Ovidiu Toader for alerting us to the bug and for sending us examples that assisted us in tracking it down. While the bug was fixed on Sunday, November 9th within minutes of our becoming aware of it, Ovidiu originally reported the issue one week prior - we just didn't see it in a timely manner.
To help improve our future response times, we've created a dedicated reporting address, [email protected] that we'll publish on our contact form. We're also creating a "Wall of Fame" to properly thank and credit past and future vulnerability reporters. More details will follow.
Super sorry about this,
The Hacker News Team
(Edit)
A clarification, since some people seem to be misunderstanding: Only publicly available data is intentionally pushed to Firebase. That any part of a user's profile other than their username, account age, about text, and list of submitted items was published IS THE BUG, and is now fixed.
[+] [-] sillysaurus3|11 years ago|reply
This has me curious. Why 100? Why not 0 or all? 100 seems to indicate you're aggregating the 100 most recent votes for some specific purpose, and that the feature unintentionally leaked the data.
I wonder if mods have the ability to go to a page, type in a username, and see the 100 most recent things they've upvoted/downvoted? I guess as a way of looking for voting rings?
I often upvote comments I feel are unfairly downvoted, definitely not because I agree with the comment. Hopefully vote history isn't being used as a metric of character. Then again, maybe it's a useful filter. I've often wished Reddit would drag down comments from people who upvote angry bully-type comments from other people, so there might be all kinds of interesting ways "100 most recent votes" could be used.
[+] [-] kogir|11 years ago|reply
[+] [-] yzzxy|11 years ago|reply
[0] Mirrored at https://github.com/wting/hackernews
[+] [-] SCdF|11 years ago|reply
As bad as data leaks are, it's at least nice to see one of these data leak stories where the passwords were actually stored correctly, instead of being MD5 / plaintext / base64.
[+] [-] lucb1e|11 years ago|reply
The reason we see so few hacks where passwords were stored properly might be because they do things properly, so odds are lower they get hacked in the first place. Just a thought.
[+] [-] baudehlo|11 years ago|reply
Also bcrypt does not seem to be FreeBSD's default libcrypt implementation from the source code [1] - it appears to be DES (or SHA512 if DES isn't available). What makes HN think it's bcrypt? @kogir?
[1] https://github.com/freebsd/freebsd/blob/master/lib/libcrypt/...
[+] [-] MalcolmDiggs|11 years ago|reply
[+] [-] danso|11 years ago|reply
[+] [-] voska|11 years ago|reply
• Quickly • Transparently • With a fix already in place
[+] [-] tokenadult|11 years ago|reply
[+] [-] ncallaway|11 years ago|reply
It's never fun to be on the receiving end of these e-mails, but the HN leak e-mail was the most responsible data-leak notification I've received.
Thanks for being professional and responsible!
[+] [-] Someone1234|11 years ago|reply
[+] [-] kogir|11 years ago|reply
This was a case of rare error handling having unintended side effects. The profiles were only published in one very unlikely case.
[+] [-] undrcvr-lagggal|11 years ago|reply
[+] [-] jacquesm|11 years ago|reply
[+] [-] kogir|11 years ago|reply
[+] [-] wslh|11 years ago|reply
[+] [-] louthy|11 years ago|reply
[+] [-] brianbarker|11 years ago|reply
[+] [-] spolu|11 years ago|reply
[+] [-] dang|11 years ago|reply
I'm going to mark this subthread off-topic now. If you have questions like this, please don't post them here, but rather email [email protected], as the guidelines ask.
[+] [-] opendais|11 years ago|reply
Welp, I'm taking my email out.
[+] [-] kogir|11 years ago|reply
(Edit)
In all seriousness though, we're really bummed this happened and wish it hadn't. We do code reviews and try our best to prevent this kind of thing from happening. That said, if you truly want your account here to be anonymous, you're right to remove all personally identifiable information. I'd also recommend using tor (and using it correctly).
[+] [-] iLoch|11 years ago|reply