This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Difference between revisions of "OWASP ASP.NET MVC Boilerplate Project"
From OWASP
RehanSaeed (talk | contribs) |
RehanSaeed (talk | contribs) |
||
Line 11: | Line 11: | ||
[[File:Preview_Image.png|650px|center]] | [[File:Preview_Image.png|650px|center]] | ||
− | + | ===Better Defaults=== | |
− | ASP.NET MVC Boilerplate makes everything secure by default | + | The default MVC template provided by Microsoft is not as secure as it could be. There are various settings (Mostly in the web.config file) which are insecure by default. For example, it leaks information about which version of IIS you are using and allows external scripts to access cookies by default! ASP.NET MVC Boilerplate makes everything secure by default. |
− | + | ===TLS and HTTPS=== | |
− | Setting up | + | Setting up TLS, so that your site runs over HTTPS is very difficult in ASP.NET MVC as it requires several steps to do it correctly. ASP.NET MVC Boilerplate makes this easy with step by step instructions and links. |
+ | |||
+ | ===HTTP Headers=== | ||
+ | |||
+ | Several HTTP headers are also used to provide better security using the [https://nwebsec.codeplex.com/ NWebSec] NuGet packages: | ||
+ | |||
+ | # [https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policy Content Security Policy (CSP)]. | ||
+ | # [https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security Strict-Transport-Security] | ||
+ | # [https://developer.mozilla.org/en-US/docs/Web/Security/Public_Key_Pinning Public-Key-Pins] | ||
+ | # [http://rehansaeed.com/nwebsec-asp-net-mvc-security-through-http-headers/ X-Content-Type-Options] | ||
+ | # [http://rehansaeed.com/nwebsec-asp-net-mvc-security-through-http-headers/ X-Download-Options] | ||
+ | # [http://rehansaeed.com/nwebsec-asp-net-mvc-security-through-http-headers/ X-Frame-Options] | ||
+ | |||
+ | ===Detailed Comments=== | ||
+ | |||
+ | ASP.NET MVC Boilerplate provides detailed comments and links to official documentation explaining all of the security features. | ||
+ | |||
+ | ===Fingerprint Resistant=== | ||
+ | |||
+ | ASP.NET MVC Boilerplate attempts to thwart fingerprinting tools by removing the IIS and .NET version HTTP headers and also changing several defaults including session and anti-forgery cookie names. | ||
+ | |||
+ | ===Dynamic IP Security=== | ||
+ | |||
+ | ASP.NET MVC Boilerplate enables IIS Dynamic IP Security to limit the maximum number of concurrent requests to thwart DDOS attacks. | ||
==Licensing== | ==Licensing== | ||
+ | |||
This program is free software: you can redistribute it and/or modify it under the terms of the [https://github.com/RehanSaeed/ASP.NET-MVC-Boilerplate/blob/master/LICENSE GNU Affero General Public License 2.0] as published by the Free Software Foundation 2015. | This program is free software: you can redistribute it and/or modify it under the terms of the [https://github.com/RehanSaeed/ASP.NET-MVC-Boilerplate/blob/master/LICENSE GNU Affero General Public License 2.0] as published by the Free Software Foundation 2015. | ||