InNT-BugTraqFirst reported on the mail listSecurity bug in. Net Forms authenticationApplicableASP. NET 1.0 (RTM, SP1, SP2, SP3)AndASP. NET 1.1 (RTM, SP1 ).
WhenForm AuthenticationWhen an anonymous user tries to access a protected page, suchHttp: // localhost/webapplication2/secret. aspxWill beRedirectLog on to the webpage as shown in FigureHttp: // localhost/webapplication2/login. aspx? Returnurl = % 2fwebapplication2% 2fsecret. aspx.
However, if you useMozillaAnonymous users can access protected pages without authentication:Http: // localhost/webapplication2 \ secret. aspx; PairIE, You can use% 5cAchieve similar results:Http: // localhost/webapplication2 % 5csecret. aspx
Microsoft 10 Month 5 Released on What you shoshould know about a reported vulnerability in Microsoft ASP. NET Web pages provide countermeasures against this security vulnerability. The current countermeasures are as follows: Kb887459 As described in Global. asaxOr its Code-behind Medium Application_beginrequest Add check
If (request. path. indexof ('\')> = 0 |
system. io. path. getfullpath (request. physicalpath )! = Request. physicalpath)
{< br> throw new httpexception (404, "not found ");
}
ObviouslyApplicationThis check is required to deal with this security vulnerability. Microsoft will also provide other countermeasures. Please pay attention to them.What you shoshould know about a reported vulnerability in Microsoft ASP. NETWebpage update.
pair Asp. NET 2.0 beta1 , without this vulnerability, the 404 error.