r/programming • • Nov 27 '18

event-stream vulnerability explained

https://schneid.io/blog/event-stream-vulnerability-explained/
147 Upvotes

21 comments sorted by

View all comments

28

u/aal0 Nov 28 '18 edited Nov 28 '18

They were only caught because they used one deprecated method (`createDecipher` instead of `createDecipheriv`), which raised concerns on other projects first. The rest was all covered up so well, minimising output, cpu cycles and network activity. This would have continued for months(/years?) before anyone would have noticed anything.

They also only stole wallets which contained more than 100 bitcoins. This was a very specific attack to a very small number of people, just to reduce any awareness, but still raking in those bitcoins.....

A deprecation warning prevented this.

11

u/smmalis37 Nov 28 '18

Really makes you wonder how many other attacks just like this one are ongoing at this very moment, and just haven't been noticed yet.

9

u/aal0 Nov 28 '18

Seeing how sophisticated this attack was, I think there are quite a few already.

I mean the cutoff was so immensely high (100btc ~400k$), this would have made it super future proof. This code was intended to run for years. Only affecting a few users, Coday would have had a lot of trouble correlating the data and probably for these few affected users shrugged it off as too local/incidental*. They would never have reviewed their code for these few cases.

*Note: the amount won't matter, quantity will. If all users were affected they had no other choice than to do an investigation.