Live data from Hacker News

Those 500K Bitcoins that caused the flash crash weren't real

mtgox.com

121–130 of 176 posts

Re: Those 500K Bitcoins that caused the flash crash weren't real

#121
post #32

I really hope somebody is giving out the best clusterfuck of the year awards soon, because this just nailed it.

What about Citibank, where you could read other people's accounts just by adding the account number to the request parameters (I think it was the account number)?

Re: Those 500K Bitcoins that caused the flash crash weren't real

#122
post #120

Earlier quoted context omitted.

> Even with the iteration count, SHA512 is not exactly meant to be slow. Increasing iteration count is synonymous with intending something to be slow. BCrypt itself uses a default of 2^10 iterations in most bindings. PBKDF2 + and an NIST studied hashing algo like SHA512 is a perfectly valid method.

Iteration is valid, but what is this about "triple salting"? Googling "triple salted" sha -gox gives me 13 results, of which 3 are about caramel cupcakes and none are serious evaluations of such an approach. It sounds like homebrew security.

I can't see how it could mean anything at all. Your password is either salted or it isn't, a hash can't really be said to have multiple salts. Maybe they're using different salts in their various rounds of hashing, can't see how that would provide any more security.

Re: Those 500K Bitcoins that caused the flash crash weren't real

#123
post #107

Earlier quoted context omitted.

It's a shame that they can't be bothered to learn about security, since they're in the business of holding other people's money. It seems that they have killed their amazing opportunity, and deeply harmed the public's confidence in bitcoin at the same time.

No, it seems to have gone fine. A lot of people (including Mt. Gox) decided to start taking security more seriously, and the price of Bitcoin has increased slightly.

"No, it seems to have gone fine."

You really think so? I find that statement sort of amazing. I guess ever the optimist, right?

Re: Those 500K Bitcoins that caused the flash crash weren't real

#124
post #59
post #6

"The new Mt. Gox site features SHA-512 multi-iteration, triple salted hashing" Why not use a standard key derivation function such as PBKDF2 or bcrypt to provide some confidence in the system rather than inventing their own? AFAIK bcrypt is strong because of Blowfish's expensive key setup. How does this compare to SHA-512?

1st rule of cryptography - don't try it at home. You'll get it wrong. There are any number of standard ways to protect passwords, there's no need for them to be reaching for the bottle of Snake Oil.

Rocky Heckman who is a security specialist as Microsoft http://blogs.msdn.com/b/rockyh/ summed it up in the best way I have heard so far.

"Don’t write your own Crypto algorithms unless you have a Doctorate in Cryptography."

Re: Those 500K Bitcoins that caused the flash crash weren't real

#125

Earlier quoted context omitted.

I think you've meant: A bank is a legally defined concept where I live, this exchange is not one.

Not really no, a bank is a legally defined concept in pretty much every country in the world. Suggested reading: http://www1.law.nyu.edu/centralbankscenter/texts/order.html

That page links to the national laws defining central banks. No one is claiming Mt Gox is a central bank.

Re: Those 500K Bitcoins that caused the flash crash weren't real

#126
post #91

Earlier quoted context omitted.

Doesn't a salt just make a rainbow table attack more expensive, in direct relation to the length of the salt?

No, it doesn't. Once the salt is large enough that you don't have several passwords hashed with the same salt value, there is absolutely no further advantage. Frankly, 64 bits of salt seems like enough for anything. Triple-salting sounds like a technique made up by an amateur who doesn't understand what salting is supposed to do.

"The length of the randomly generated salt shall be at least 128 bits."

nist-sp800-132.pdf http://csrc.nist.gov/publications/PubsSPs.html

Not quite the same application, but it would seem best to take a conservative approach and make your salts 128 bits because the storage required is so small - you are only storing one per username.

Re: Those 500K Bitcoins that caused the flash crash weren't real

#127
why don't people use a private salts to beef up security? for example record the per-password salt in the db along with the hashed password but when calculating the hash concatenate the per-password salt with a salt stored in the program.

i realise it is kind of security through obscurity but in this instance the SQL injection wouldn't have compromised the private salt and it would have been much harder to recover the passwords. presumably, you would have to use a known pass/hash combo to brute force the private salt which would take a lot more computation time than recovering simple passwords.

Re: Those 500K Bitcoins that caused the flash crash weren't real

#128
If Mt. Gox did find the hacker, what could be done? I feel like this would be opening up a can of worms between Gox and the Gov. Although Gox and its users (myself included) are the victims in the recent compromise, it may be possible that instead of sympathy (or justice) being served, it would be Gox on the losing end again. I can see the House Sub-committee having a field day on Gox.

Maybe, maybe not. But this hack may be one without recourse.

Re: Those 500K Bitcoins that caused the flash crash weren't real

#129

Earlier quoted context omitted.

Facebook is a "PHP+mysql" site.

I wouldn't store my money on facebook either.

I wouldn't either but that's because I can imagine Facebook just straight-up stealing it. Nothing about security.

Re: Those 500K Bitcoins that caused the flash crash weren't real

#130
post #28
post #15

Earlier quoted context omitted.

That would mean that logins would have to go through 3 different servers. If anything, I would be more worried about security in that case.

Not necessarily. Let's say the salt is a combination of a per-user salt in the database, a per-user salt from a file on disk, and a per-system salt that's entered at the console at startup and held in memory. A DB compromise doesn't reveal the other 2 salts. A full filesystem image doesn't reveal the third salt. Even an interactive root compromise would need to know to take an image of the running system's memory to…

There are plenty of ways that you could use 3 different salts without it having to pass through 3 servers, but I was specifically responding to the OP, where he spoke of 3 salts in 3 different servers.
Post reply on HN