ASP.NET Security Vulnerability

Yesterday a vulnerability was disclosed at a security conference that enables an attacker to gain the Machine Key of an ASP.NET website.  This key is used by the server to encrypt cookies, form data and other values sent to the client.  With this key the attacker can exploit an ASP.NET site to gain admin access and possibly download files from the server such as web.config (that often contains other sensitive data like database connection strings).

What you need to do now

Go read up on the vulnerability at:

http://www.microsoft.com/technet/security/advisory/2416728.mspx
http://weblogs.asp.net/scottgu/archive/2010/09/18/important-asp-net-security-vulnerability.aspx

Then make a simple change to your web.config file and add a custom error page that will prevent the attack from working (the attack in simple terms is done by sending bad requests to the target site, and watching the error codes and time to return those error codes for clues in figuring out the Machine Key).

The exploit is already making it’s way though the internet.  Microsoft is working on a patch that will be released shortly, but until then these are the only steps to protect your website.  It’s unfortunate, but the two who found the vulnerability refused to work with Microsoft and instead choose to reveal the details of the exploit at a conference and then toss thumb drives into the crowd containing code to exploit sites. 

Posted By Mike On Saturday, September 18, 2010
Filed under asp.net | No Comments

Submit this story to DotNetKicks   

Leave a comment



Your name:
 

Your email (not shown):
 
Will display your Gravatar image.

Your website (optional):



About Michael

Michael C. Neel, born 1976 in Houston, TX and now live in Knoxvile, TN. Software developer, currently .Net focused. Board member of ETNUG and organizes CodeStock, East Tennessee's annual developers conference. .Net speaker, a Microsoft ASP.NET MVP and ASPInsider. Co-Founder of FuncWorks, LLC and GameMarx.

Proud father of two amazing girls, Rachel and Hannah, and loving husband to Cicelie who inflates and pops his ego as necessary.

 Subscribe to ViNull.com |  Comments

Follow me on Twitter | Contact Me

Related Posts

ASP.NET: Cannot use a leading .. to exit above the top directory

This is a really quick post, mostly for myself so the next time I have this issue I can find the answer (yes, I often search my blog before google). The ... Read more

ASP.NET: Creating a UserControl with Child Content

I love ASP.NET User Controls, aka “ascx” files.  These little guys are great for reusable content and dividing up the components of a website.  ... Read more

ASP.NET SEO Interview on Polymorphic Podcast

Craig Shoemaker just posted the latest episode of the Polymorphic Podcast: ASP.NET SEO - Interview with Michael Neel.  Yes, I've now appeared in a ... Read more

Google Can You Hear Me?

In June of 2006 I wrote an article titled "Google Can You Hear Me? How to design URLs that are search engine friendly" that also included a sidebar titled ... Read more

Using LINQ to generate HTML

I hate seeing code mixed with markup. Seeing a template page with <% if(show) { %> makes me want to claw my eyes out.  Seeing String htmlTitle ... Read more

XNA 3D Primer by Michael C. Neel

XNA 3D Primer by Michael C. Neel
Buy Now: [ Amazon ] [ Wrox ]

GameMarx

CodeStock

ASPInsiders Member

ETNUG Member