11.07.2015 Views

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 10: Building Secure ASP.NET Pages <strong>and</strong> Controls 279Secure Restricted Pages with SSLTo ensure that SSL is used to protect the logon credentials that are posted from thelogin form, <strong>and</strong> that the authentication cookie passed on subsequent requests torestricted pages, configure the secure folders in IIS to require SSL. This sets theAccessSSL=true attribute for the folder in the IIS metabase. Requests for pages in thesecured folders will only be successful if https is used on the request URL.For SSL, you must have a server certificate installed on the <strong>Web</strong> server. For moreinformation, see “How To: Setup SSL on a <strong>Web</strong> Server” in the “How To” sectionof “Microsoft patterns & practices Volume I, Building Secure ASP.NET<strong>Application</strong>s: Authentication, Authorization, <strong>and</strong> Secure Communication” athttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/secnetlpMSDN.asp.Use URL AuthorizationTo allow anonymous access to public pages, use the following element.Use the following element inside a element in<strong>Web</strong>.config to deny access to unauthenticated users <strong>and</strong> force a redirect to the loginpage that is specified on the element:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!