News for hackers. Stuff that matters.
Re:Breaking open the Mt. Gox case, part 1 by Pyxl101 on Wednesday July 26, 2017 @04:17PM (#14859859)
It sounds like MtGox must have had no auditing of their wallets, or completely ineffective auditing.

How did they not at least perform a simple sum of coins held by their wallets and compare it against the amount expected by their databases? Or is the attack more sophisticated than this would detect?

If I were building a system like this, I'd want to run an auditing system continuously that looks for discrepancies, and then "shuts down everything" if they're detected.

Re:Breaking open the Mt. Gox case, part 1 by jnordwick on Wednesday July 26, 2017 @07:29PM (#14861323)
In trading environments we have a thing called drop copy that is a real-tine feed of what the street thinks the house's trades are. This is constantly compared to what tree house's own view is. This way trade breaks (discrepancies) are caught immediately.

The analogy would be scanning the block chain looking for tree firm's account numbers to verify all transactions are accounted for.

I don't know for the life of me why basic stuff like this isn't implemented. The crypto currency world is like a big joke.

Re:Breaking open the Mt. Gox case, part 1 by wmf on Wednesday July 26, 2017 @07:40PM (#14861386)
In the early days, Bitcoin exchanges weren't making enough money to pay for "real" engineering. Then things tended to take off so fast that just keeping the site up consumed all its resources.

There were one or two exchanges that did things "right" (e.g. TradeHill) and were immediately driven out of business by their own high costs.

Re:Breaking open the Mt. Gox case, part 1 by Pyxl101 on Wednesday July 26, 2017 @08:45PM (#14861726)
I don't buy that argument, if it implies that the site operators were anything but flabbergastingly incompetent.

It's pretty straightforward to compute the sum of all coins in your wallets, I would assume. It's also straightforward to compute the sum of all account deposits tracked by your database. Just knowing those two numbers is really simple stuff, like a single SQL query on the DB. All they need to do is calculate those numbers and report on it daily or weekly and they'd have detected the fraud the very first time coins were taken.

Re:Breaking open the Mt. Gox case, part 1 by paulmd on Thursday July 27, 2017 @02:41AM (#14863126)
Yeah, how dare you presume incompetence on the part of Magic: The Gathering Online Exchange, the internet's largest online trading card site turned financial exchange. /s

(Not physical cards traded online, mind you, these were virtual cards in the game Magic: The Gathering Online.)

They were simultaneously bit by an attack exploiting a fault in their wallet implementation in combination with transaction malleability. You can invert all the bits in a transaction id and if you also take the complement of the signature then the signature is still valid. The transaction still happens but you never see the transaction ID come over the network (it's actually the complement of the txid). After a while, most clients concluded that it wasn't broadcast successfully and either aborted or retry, so their wallet balance diverged. And yes they probably did not check it against the official client balance.

A significant number of frontend nodes participated in this transaction malleability attack over a sustained period of time, probably more than a lone-wolf attacker could access (although renting botnets isn't all that expensive, especially if you are sucking out bitcoin at the same time...)

The interesting question is whether they had someone on the inside, although it could also be explained by incompetence and an attacker probing for weaknesses who comes to realize that the bug wasn't being patched.

Re:Breaking open the Mt. Gox case, part 1 by Atheros on Friday July 28, 2017 @03:04AM (#14872513)
There is a lot of space between 'real engineering' and 'flabbergastingly incompetent'.

> It's pretty straightforward to compute the sum of all coins in your wallets, I would assume.

You assume incorrectly. It's a cold wallet. It's not connected to anything; that is its purpose. To monitor the balance, one would have to write software to watch the blockchain and calculate the balance of specific addresses. This is by no means impossible but in 2011 there were very very few engineers on Earth competent to do it and Mt Gox was trading bitcoins for pennies. Don't underestimate how fast Bitcoin went from a strange curious technology to being worth significant money.

Ultimately you are judging their actions through the lens of hindsight. Best practices weren't even established yet.

Re:Breaking open the Mt. Gox case, part 1 by FRex on Wednesday July 26, 2017 @04:30PM (#14860002)
The site was originally made for trading Magic The Gathering Online cards by one guy who later got bored and then got into Bitcoin but I have no idea and wikipedia doesn't mention if they reused any code or just the domain name itself.

It's a fun piece of trivia one crypto currency guy told me and it seems to be true.

Re:Breaking open the Mt. Gox case, part 1 by mobiletelephone on Wednesday July 26, 2017 @04:41PM (#14860120)
Magic the Gathering Online Exchange ;)
Re:Breaking open the Mt. Gox case, part 1 by FRex on Thursday July 27, 2017 @05:19AM (#14863714)
Yes, I never realized.. seriously, I didn't until today. I thought it was meant to sounds like Knox and Mount to invoke images of gold, vault in a mountain side and so on.
Re:Breaking open the Mt. Gox case, part 1 by viraptor on Wednesday July 26, 2017 @05:57PM (#14860729)
It really bothers me how often people repeat it like it means anything in this case. Like they forget Amazon was just selling books. Also no idea if it still uses any of the old code or just the name itself.
Re:Breaking open the Mt. Gox case, part 1 by mikeyouse on Wednesday July 26, 2017 @09:33PM (#14861958)
Jed McCaleb built a beta release of a Magic trading card exchange for the MtGox domain. He then read about bitcoin in a Slashdot article posted on July 11th, 2010 after which he decided to write an exchange. McCaleb insists that the bitcoin exchange was completely different from the Magic cards exchange, but Mt Gox went live as a Bitcoin exchange July 18th, 2010.

So either McCaleb built a brand new exchange from the ground up in one week, or he reused code from his Magic card trading service.

McCaleb sold the site to Karpeles 8 months later, and 3 months after that, it was breached for the first time. Allegedly, the hacker used McCaleb's old admin credentials to arbitrarily assign himself any amount of bitcoin, which he then started selling off to crash the price. Since the price crashed to $0.01, the dollar value of the withdrawal limit represented several thousand bitcoin, which the attacker promptly sent off-site.

No matter if the site was reused code from a Magic card exchange, or was written from the ground up, it never should have been within a thousand miles of anything of value.

Re:Breaking open the Mt. Gox case, part 1 by viraptor on Wednesday July 26, 2017 @11:34PM (#14862504)
> So either McCaleb built a brand new exchange from the ground up in one week, or he reused code from his Magic card trading service.

Or he spent some time writing the new service while the previous one was still running.

Re:Breaking open the Mt. Gox case, part 1 by FRex on Thursday July 27, 2017 @05:25AM (#14863739)
How could he have spent time writing a new service if it went from him getting the bitcoin idea from slashdot to launch in 7 days?
Re:Breaking open the Mt. Gox case, part 1 by mbreese on Wednesday July 26, 2017 @08:06PM (#14861533)
But Amazon still sells books...

The MtGox pivot from trading cards to Bitcoin was pretty dramatic.

Re:Breaking open the Mt. Gox case, part 1 by camjohnson26 on Wednesday July 26, 2017 @04:42PM (#14860135)
Yep. Mt Gox = MTG: Online Exchange
Re:Breaking open the Mt. Gox case, part 1 by vesinisa on Wednesday July 26, 2017 @05:32PM (#14860573)
IIRC the site was written in PHP and it was a miracle it didn't get hacked earlier (or, now it seems, it did, but the hackers kept the site running to maximize the heist).

https://gist.github.com/alainmeier/9319451

Re:Breaking open the Mt. Gox case, part 1 by DonHopkins on Wednesday July 26, 2017 @06:13PM (#14860859)
"PHP can do anything, what about some ssh?" -Mark Karpelès

ಠ_ಠ

https://web.archive.org/web/20100701145902/http://blog.magic...

Re:Breaking open the Mt. Gox case, part 1 by zapt02 on Wednesday July 26, 2017 @07:56PM (#14861474)
To be fair, PHP by itself is not the issue here, the issue is rather being amateurs (Mark, Ross) who started doing a fun project and ended up brokering millions of dollars without having the experience or opsec of doing so. This is what lead to their downfall.
Re:Breaking open the Mt. Gox case, part 1 by jimrandomh on Thursday July 27, 2017 @03:16PM (#14868447)
Because they knew they were running (illegally) on fractional reserve, but needed to avoid creating any evidence that they knew.