ASP.NET Inheritance Web.config not working to install MaxHttpCollectionKeys from MS11-100

After updating our systems with the recently released asp.net ms11-100 vulnerability patch, we found that some of our pages crashed with the exception "[HttpException (0x80004005): URL-encoded form data is invalid.]" This is described on asp forums .net here:

http://forums.asp.net/t/1754512.aspx/1?Microsoft+security+bulletin+MS11+100+breaking+our+site

and on stackoverflow here:

ASP.NET MS11-100: how can I change the limit to the maximum number of published form values?

I tried to limit the changes offered by the attack area to a specific page by moving this page to my own folder so that I could have a specific web.config file in this folder with aspnet settings: MaxHttpCollectionKeys has a value that exceeds the default value of 1000.

I found that if I did not specify this parameter in the web.config file in the root folder, this parameter did not take effect. It seemed that asp.net simply ignored the parameter when it was in web.config in a new folder for the page.

Is there anything else I need to do to make this happen? Or is this not possible at all due to the nature of the setting?

+8
security web-config
source share
2 answers

Based on my understanding of how this stuff works, I have some doubts that you can change these settings at the level of the web.config folder. It seems that MaxHttpCollectionKeys is application level, so to change the base value, you must create another application pool.

+4
source

I also tried putting this in a subfolder with no luck. As soon as I instead put it in the root web.config, it worked.

+1
source

All Articles