News for hackers. Stuff that matters.
Re:Alleged Mt.Gox code leaked on IRC node by Russian Hacker by TazeTSchnitzel on Monday March 03, 2014 @02:50AM (#7332544)
MagicalTux is a known lunatic who wants to write everything in PHP. Which isn't too bad of an idea, but he, for example, hacked together an SSHd in PHP and immediately put it into production use:

http://blog.magicaltux.net/2010/06/27/php-can-do-anything-wh...

Essentially he is a bad programmer and he has Not Invented Here (fixed, thanks jey) syndrome, both of which are terrible attributes for someone coding a Bitcoin exchange.

Re:Alleged Mt.Gox code leaked on IRC node by Russian Hacker by jey on Monday March 03, 2014 @03:09AM (#7332592)
I think you meant NIH ("Not Invented Here"), not NIMBY ("Not In My Backyard").
Re:Alleged Mt.Gox code leaked on IRC node by Russian Hacker by TazeTSchnitzel on Monday March 03, 2014 @03:12AM (#7332601)
Oops, yes I did indeed mean Not Invented Here syndrome. Thanks.
Re:Alleged Mt.Gox code leaked on IRC node by Russian Hacker by stormbrew on Monday March 03, 2014 @04:28AM (#7332807)
.. Well.. at least he didn't write the crypto primitives himself in PHP.
Re:Alleged Mt.Gox code leaked on IRC node by Russian Hacker by brianpgordon on Monday March 03, 2014 @06:15AM (#7333131)
He wrote the DH key exchange himself. I didn't look at the implementation but someone commented before that it's vulnerable.
Re:Alleged Mt.Gox code leaked on IRC node by Russian Hacker by mukyu on Monday March 03, 2014 @12:58PM (#7335178)
I actually wrote that comment back in the day. I was rather snarky and unhelpful it seems.

The code for the sshd does not seem to be there anymore, but from memory: it did not check if the number sent by Bob was 0, 1, or any any other groups that would make it easy solve the discrete logarithm problem. I don't think it bothered to check the primes either. [1] I think there was also something wrong with the signature checking (padding not checked maybe?).

Altogether it seemed like you could easily MITM connections made to the server, but I don't think I ever tried. It was a perfect example--to me at least--of why you should not spend a trivial amount of time reading about crypto on Wikipedia and then writing crypto code.