ASP. NET form authentication security vulnerabilities and Countermeasures

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.