Live data from Hacker News

Bitcoin exchange hacked via Rails exploit, funds stolen

bitcointalk.org

31–40 of 279 posts

Re: Bitcoin exchange hacked via Rails exploit, funds stolen

#32
The majority of legitimate people running Bitcoin related services are of a very fringe type. It will probably remain this way for a while. This is because there is so much risk involved. Not just risk of currency or business failure, but risk of harsh legal action. The subsection of the population this selects for ends up being... let's say... not so reliable.

Then worse, you have tons of internet criminals coming up with clever strategies to part people with their Bitcoin. Will these guys reimburse their users or end up giving an excuse and disappearing into the ether? Only time will tell.

That said, Bitcoin itself remains strong and probably one of technologies with the biggest potential in quite a long time. These issues will continue to occur and spawn drama for the foreseeable future. At some point the good Bitcoin news will drown out the bad Bitcoin business news. But that's not going to happen anytime soon. So let's get used to it.

Re: Bitcoin exchange hacked via Rails exploit, funds stolen

#33
post #7

Earlier quoted context omitted.

In the US, at least, people still got famous for being bank robbers back then. The FDIC, which provides limited insurance for bank deposits, started their insurance on January 1, 1934. So, sophistication aside, it's an interesting question what happened to depositors after a bank robbery.

FDIC doesn't insure against robberies.

No, but banks are insured against robbery.

Re: Bitcoin exchange hacked via Rails exploit, funds stolen

#34

I guess this is still the Wild Wild West era of Bitcoin; I'd wager plenty of banks got knocked off by bandits back in the day, too. What happened to a bank's customer's funds if it got robbed prior to 1933?

Banks don't keep all of their assets in cash in the safe. In its very simplest form, a bank takes money from depositors and pays a small "savings" rate. It then lends this money to borrowers at a higher rate. Every dollar in the safe is a dollar that isn't out earning interest, so the bank wants to only keep enough on hand to cover what customers will need for withdrawals. I met an ex bank robber once. He and his "ga…

Most Bitcoin exchanges - apparently including this one - only store a small portion of their funds in the wallet on their live server for exactly the same reason. They claim they can cover the loss.

Re: Bitcoin exchange hacked via Rails exploit, funds stolen

#35

I guess this is still the Wild Wild West era of Bitcoin; I'd wager plenty of banks got knocked off by bandits back in the day, too. What happened to a bank's customer's funds if it got robbed prior to 1933?

Banks don't keep all of their assets in cash in the safe. In its very simplest form, a bank takes money from depositors and pays a small "savings" rate. It then lends this money to borrowers at a higher rate. Every dollar in the safe is a dollar that isn't out earning interest, so the bank wants to only keep enough on hand to cover what customers will need for withdrawals. I met an ex bank robber once. He and his "ga…

Robert Heinlein makes good meat out of this misunderstanding of banking in his book 'Time Enough for Love'.

The nearly immortal protagonist often ends up being the banker in a small frontier towns. He routinely has to deal with mobs of people who attempt to "nationalize the bank" and are dumbfounded to discover that the bank does have all of the money in a safe.

Re: Bitcoin exchange hacked via Rails exploit, funds stolen

#36

If it's that easy to steal, you're probably doing it wrong. The front-end server should never have direct access to the bitcoin RPC server, since the front-end is likely to be vulnerable. Instead, it should contact a robust back end server, which then talks to the RPC.

Bitcoin bank developers commonly "do it wrong."

Re: Bitcoin exchange hacked via Rails exploit, funds stolen

#37
Are these different exchanges at least talking to each other and trying to learn from experience?

Is there a Best Current Practice for all steps in BitCoin - for people wanting to buy or sell bitcoins; for people wanting to trade goods for bitcoin; for people wanting to run bitcoin financial services or exchanges?

Re: Bitcoin exchange hacked via Rails exploit, funds stolen

#38

I guess this is still the Wild Wild West era of Bitcoin; I'd wager plenty of banks got knocked off by bandits back in the day, too. What happened to a bank's customer's funds if it got robbed prior to 1933?

A lot of banks get knocked off today http://www.fbi.gov/stats-services/publications/bank-crime-st...

Yeah, most banks just intentionally try not to publicise the fact they've been robbed from what I've heard - it's bad for business and tends to encourage future robbers.

Re: Bitcoin exchange hacked via Rails exploit, funds stolen

#39
post #15

Well that's not really a surprise. Perhaps the "Rails generation" will gain some engineering, product selection and QA skills now. There's a big reason banks operate the way they do with the kit they do.

Even given I must admit that this was a spectacularly stupid hole[1], I don't think your point is valid. It's not like other frameworks in other languages don't have similar issues [2]. Rails is for what it does well engineered, well tested and using it for what it's intended is usually a solid choice. Rails enables and pushes testing on all levels, thus improving quality of all rails apps that follow the lead. You can argue that rails is not a good fit for a lot of use cases, but that's a completely different argument - and one I usually agree with - but all in all rails and its ecosystem pushes exactly the values that you say are missing.

[1] Auto-Unmarshalling yaml in xml, seriously? Who wants yaml in xml?

[2] I'm sorry to single out spring here, but this is a nice example since it's the same kind of attack: Instatiation of an arbitrary class, in this case by modifying the class loader and loading the class from a remote server: http://support.springsource.com/security/cve-2010-1622

Re: Bitcoin exchange hacked via Rails exploit, funds stolen

#40
post #36

If it's that easy to steal, you're probably doing it wrong. The front-end server should never have direct access to the bitcoin RPC server, since the front-end is likely to be vulnerable. Instead, it should contact a robust back end server, which then talks to the RPC.

Bitcoin bank developers commonly "do it wrong."

Unfortunately. It's a real shame that despite the security features of the client and such, nobody seems to use them.
Post reply on HN