ASP. NET security vulnerabilities and countermeasures
Source: Internet
Author: User
First, the Security bug in. NET Forms Authentication applies to ASP. NET 1.0 (RTM, SP1, SP2, SP3) and ASP. NET 1.1 (RTM, SP1 ).
When Form Authentication is used, anonymous users attempt to access protected pages, such as http: // localhost/WebApplication2/secret. aspx will be redirect to the logon webpage, such as http: // localhost/WebApplication2/login. aspx? ReturnUrl = % 2fWebApplication2% 2fsecret. aspx.
However, if Mozilla is used, anonymous users can access the protected page without authentication: http: // localhost/WebApplication2secret. aspx; for IE, you can use % 5C to achieve similar results: http: // localhost/WebApplication2 % 5Csecret. aspx
In October 5, Microsoft released the "What You shoshould Know About a Reported Vulnerability in Microsoft ASP. NET" webpage to provide countermeasures against this security Vulnerability. The current countermeasure is to add a check in Application_BeginRequest in Global. asax or its Code-Behind as described in KB887459.
If (Request. Path. IndexOf ('')> = 0 | System. IO. Path. GetFullPath (Request. PhysicalPath )! = Request. PhysicalPath) {throw new HttpException (404, "not found ");}
Obviously, each Application needs such a check to cope with this security vulnerability. Microsoft will also provide other countermeasures. Please pay attention to What You shoshould Know About a Reported Vulnerability in Microsoft ASP. NET webpage updates.
For ASP. NET 2.0 Beta1, the error 404 is returned instead of the vulnerability.
The post is provided as "status quo" without any guarantee and has not been granted any rights
Published on Thursday, October 07,200 4 AM
Comment
# Re: ASP. NET Form Authentication security vulnerability and countermeasures 10/7/2004 AM TommyWOo
Http: // localhost/WebApplication2 % 5Csecret. aspx
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