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.

144 Part III: Building Secure <strong>Web</strong> <strong>Application</strong>sSummaryThis chapter has introduced you to the .NET Framework security l<strong>and</strong>scape bycontrasting user security <strong>and</strong> code security <strong>and</strong> by examining the securitynamespaces. The .NET Framework refers to these two types of security as role-basedsecurity <strong>and</strong> code access security, respectively. Both forms of security are layered ontop of Windows security.Role-based security is concerned with authorizing user access to applicationmanagedresources (such as <strong>Web</strong> pages) <strong>and</strong> operations (such as business <strong>and</strong> dataaccess logic). Code access security is concerned with constraining privileged code<strong>and</strong> controlling precisely which code can access resources <strong>and</strong> perform otherprivileged operations. This is a powerful additional security mechanism for <strong>Web</strong>applications because it restricts what an attacker is able to do, even if the attackermanages to compromise the <strong>Web</strong> application process. It is also an extremely powerfulfeature for providing application isolation. This is particularly true for hostingcompanies or any organization that hosts multiple <strong>Web</strong> applications on the same<strong>Web</strong> server.Additional ResourcesFor more information, see the following resources:●●For more information about code access security, see Chapter 8, “Code Access<strong>Security</strong> in Practice,” <strong>and</strong> Chapter 9, “Using Code Access <strong>Security</strong> with ASP.NET.”For information about code access security <strong>and</strong> role-based security, see theMSDN article, “.NET Framework <strong>Security</strong>,” at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconnetframeworksecurity.asp.

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

Saved successfully!

Ooh no, something went wrong!