Live data from Hacker News

All Node.js servers are vulnerable to DoS

groups.google.com

1–10 of 37 posts

Re: All Node.js servers are vulnerable to DoS

#4

So are all string based dictionaries?

Yes, if they are implemented via hash tables and do not randomize their hash generation somehow. The talk at 28c3 specifically mentions PHP, Java, ASP.net, Python. Ruby is fine, but other variants of Ruby are apparently also vulnerable.

Re: All Node.js servers are vulnerable to DoS

#5
This is a particular case of http://news.ycombinator.com/item?id=3401900. Basically, weak hash functions allow you to create lots of hash table collisions, degrading performance to that of a linked list. It is common to put POST'ed data into a hash table (the equivalent of ?foo=bar&baz=qux becomes {"foo": bar, "baz": qux}).

Re: All Node.js servers are vulnerable to DoS

#8
post #4

So are all string based dictionaries?

Yes, if they are implemented via hash tables and do not randomize their hash generation somehow. The talk at 28c3 specifically mentions PHP, Java, ASP.net, Python. Ruby is fine, but other variants of Ruby are apparently also vulnerable.

Ruby 1.9 is fine, 1.8 has problems.

Re: All Node.js servers are vulnerable to DoS

#9
Ryan Dahl commented on the thread, and it's being fixed in node. Nice to see assessment and responsiveness at the core of the project.

I'm evaluating node.js as an application platform choice for a large public infrastructure project. One thing that concerns me is (my perception here) a lack of public hardening of the server that's yet to come. I've been around long enough to see that effect on PHP, Django, Rails, etc.

We'll continue our evaluation but it's encouraging to know that issues like these are being discovered and addressed.

Post reply on HN