Live data from Hacker News

All Node.js servers are vulnerable to DoS

groups.google.com

11–20 of 37 posts

Re: All Node.js servers are vulnerable to DoS

#11
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.

PHP already fixed this in the 5.3.9 and 5.4RC branches.

Re: All Node.js servers are vulnerable to DoS

#12
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.

Worth noting that this has been "fixed" in Perl since 5.8.1, released over 8 years ago.

http://perldoc.perl.org/perlsec.html#Algorithmic-Complexity-...

Re: All Node.js servers are vulnerable to DoS

#15

Anything measured can be improved.

That's the spirit of those "penis enlargement" ads. To be pedantic, there are hardcore limits on stuff, that we can not improve upon. We cannot sort a list of n items in less than O(n) for example.

O(n) only applies to non-comparison based sorts; for comparison based sorts that might be used on "items" the lower bound is indeed O(n.log n)

Re: All Node.js servers are vulnerable to DoS

#16
post #4

Earlier quoted context omitted.

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.

1.8 is also fixed.

Re: All Node.js servers are vulnerable to DoS

#17
post #3

Didn't I see this same thing about PHP the other day? http://news.ycombinator.com/item?id=3403360 http://nikic.github.com/2011/12/28/Supercolliding-a-PHP-arra...

> Didn't I see this same thing about PHP the other day?

This affect all languages using hashtables with non-randomized hash functions to store POST arguments, it's been discussed on Python's mailing list for instance. It's also been noted on the Erlang list, but all erlang frameworks apparently use proplists for POST mappings, so none of them is affected.

Re: All Node.js servers are vulnerable to DoS

#18
post #3

Didn't I see this same thing about PHP the other day? http://news.ycombinator.com/item?id=3403360 http://nikic.github.com/2011/12/28/Supercolliding-a-PHP-arra...

> Didn't I see this same thing about PHP the other day? This affect all languages using hashtables with non-randomized hash functions to store POST arguments, it's been discussed on Python's mailing list for instance. It's also been noted on the Erlang list, but all erlang frameworks apparently use proplists for POST mappings, so none of them is affected.

I believe that the critical ASP.NET framework update that Microsoft pushed just before the new year was to fix this issue as well, amongst a few others.

http://technet.microsoft.com/en-us/security/bulletin/ms11-10...

Re: All Node.js servers are vulnerable to DoS

#20
It's like everyone figured out how hashes work just a couple of days ago. What happened to spark all of this conversation? I also keep hearing that this problem is solved with randomized hashing functions, but my best guess is that this doesn't eliminate collisions. It just then becomes roughly impossible to generate a set of keys that would cause enough collisions to actually be a problem. Hooray for data structures.
Post reply on HN