by jiggy2011 · 14y ago · 0 comments
I can't think of a specific time in a normal HTTP request that would use a user-supplied hash.
I would assume only a minority of pages on the average site would eat CPU so surely the sensible defense to this would be to impose a maximum CPU usage on these parts so the rest of the website continues to work.
page.php?x=1&y=1...
where the x and y keys are going to have the same hash value, so that when it uses those vars in a page it will hit the same hash bucket and become O(n) not O(1)?
Of course you would want to send a lot of different vars in.