Security Reasearchers have discovered a long standing vulnerabilty in many popular web application languages that can lead to a denial of service (DoS) attack. Most programing languages including PHP, Java, Python and ASP.NET are vulnerable to this HashDos vulnerabltily.
A denial-of-service attack (DoS) overloads the server with multiple requests, effectively making it unable to serve a website to new visitors. Usually such an attack strong enough to overwhelm a server requires a lot of horsepower on the attacker’s side. This vulnerability however makes things significantly easier for an attacker.
Microsoft has released an emergency/out-of-band update (KB2659883 and MS11-100) to mitigate this issue in ASP.NET and .NET Frameworks.
All our Windows Server systems have already been patched with MS11-100.
Researchers recently presented their research at the 28c3 Security Conference. The specific details relate to hashing algorithms and managing hash collisions. A specially crafted request can force a website to consume all CPU resources in an effort to resolve and manage the hash collisons. The net effect of this increased CPU load can lead to a DoS on the website.
Without fixing the core hashing algorithims and functions there are a number of workarounds that can be used to mitigate the impact of the HashDos vulnerability.
- Reduce the length/size of HTTP parameters that can send via POST.
- Reduce the number of HTTP parameters accepted by the web application framework.
- Limit the amount of CPU time that any given thread is allowed to run.
These workarounds may negatively impact the operations of your web application and should be reviewed and tested before being deployed into a production enviroment.
References and further reading:
- http://en.wikipedia.org/wiki/Denial-of-service_attack
- http://en.wikipedia.org/wiki/Hash_collision
- http://technet.microsoft.com/en-us/security/advisory/2659883
- http://technet.microsoft.com/en-us/security/bulletin/ms11-100
- http://blogs.technet.com/b/srd/archive/2011/12/29/asp-net-security-update-is-live.aspx
- http://blogs.technet.com/b/srd/archive/2011/12/27/more-information-about-the-december-2011-asp-net-vulnerability.aspx
