Sign In
Home
Recent
Media
Videos
Podcasts
Screencasts
Shows
ARCast with Ron Jacobs
ARCast.TV
Behind The Code
See All Shows...
Forums
Coffeehouse
Tech Off
Feedback
Sandbox
Key Topics
Visual Studio
Continuum
Wiki
Search
About
Subscribe
aspnet2securityfaqs
Cancel
Save
Edit
Return to
HomePage
ASP.NET 2.0 Security FAQ s
Welcome to the ASP.NET 2.0 Security FAQ page. This page provides an index to common questions and answers. The questions act as another index into the security guidance.
Authentication
*
What's new in ASP.NET 2.0 in terms of Authentication?
*
How do I decide my Authentication strategy in ASP.NET?
*
How do I use Forms Authentication with SQL Server database?
*
How do I use Forms Authentication with Active Directory?
*
How do I enable Forms Authentication to work with multiple Active Directory domains?
*
How do I protect Forms Authentication?
*
How do I enforce strong passwords using membership feature in ASP.NET 2.0
*
How do I protect passwords in user store?
*
What are the issues with Forms Authentication in Web Farm Scenario?
*
How do I implement single sign on using forms authentication?
*
How do I use my custom user / identity store with forms authentication?
*
How do I configure account lockout using membership feature in ASP.Net 2.0?
*
When and how do I use windows authentication in ASP.NET 2.0?
*
When and how do I use Kerberos authentication in ASP.NET 2.0?
Authorization
*
What's new in ASP.NET 2.0 in terms of Authorization?
*
What is the difference between URL authorization, File authorization and Role authorization??
*
How do I use URL Authorization in ASP.NET 2.0?
*
How do I use File Authorization in ASP.NET 2.0?
*
How do I use Role Authorization in ASP.NET 2.0?
*
How is the different from Authorization Manager APIs?
*
How do I use Windows Groups for role authorization in ASP.NET 2.0?
*
How do I use my custom role store for roles authorization?
*
How do I cache roles in ASP.NET 2.0?
*
How do I protect authorization cookie when using role caching in ASP.NET 2.0?
*
How do I lock authorization settings?
*
How do I use in my application?
Auditing and Logging
*
What's new in ASP.NET 2.0 in terms of Auditing and Logging?
*
How do I use the Health monitoring feature in ASP.NET 2.0?
*
What all security events do health monitoring feature logs by default?
*
How do I instrument my application for security?
*
When writing to a new event source from my ASP.NET application running under the Network service security context, I get registry permission exception. Why is this and how do I correct this
*
How do I protect audit and log files?
Code Access Security
*
What's new in ASP.NET 2.0 in terms of Code Access Security?
*
How do I use code access security with ASP.NET?
*
How do I create a custom trust level for ASP.NET?
*
What are the permissions at the various trust levels?
*
How do I write partial trust applications?
*
When should I put assemblies in GAC, what are security implications?
Impersonation / Delegation
*
When do I use impersonation in ASP.NET 2.0?
*
How do I impersonate the original caller?
*
How do I temporarily impersonate the original caller?
*
How do I impersonate a specific (fixed) identity?
*
When should I use programmatic impersonation?
*
How do I use programmatic impersonation?
*
What is protocol transition and when do I care?
*
What is Constrained Delegation?
*
How can I retain impersonation in the new thread created from ASP.NET application?
*
How do I flow the original user identity to different layers?
*
Can impersonation be used with Forms authentication?
*
What are the requirements for using Kerberos delegation?
Configuration
*
What does a secure web.config look like?
*
How do I encrypt sensitive data in machine.config or web.config file?
*
How do I run an ASP.NET application with a particular identity?
*
How do I create a service account for running my ASP.NET applications?
*
Do I need to create a unique user account for each application pool?
*
How do I lock configuration settings?
Exception Handling
*
How do I handle exceptions securely?
*
How do I prevent detailed errors from returning to the client?
*
How do I use structured exception handling?
*
How do I setup a global exception handler for my application?
*
How do I enable my ASP.NET application to write to new event source?
Data Access
*
How do I protect the database connection strings in web.config file?
*
How do I use windows authentication for connecting to SQL server?
*
How do I use SQL authentication for connecting to SQL server?
*
When using Windows authentication, how can I give the default ASP.NET worker process access to a remote database server?
Input / Data Validation
*
What are the types of input I need to validate in my ASP.NET application?
*
How do I validate input in server-side controls?
*
How do I validate input in HTML controls, cookies, and HTTP headers?
*
What is SQL injection and how do I protect my application from SQL injection attacks?
*
What is cross-site scripting and how do I protect my ASP.NET application from it?
Sensitive Data
*
How do I protect my web application's ViewState?
*
What care should I take when securing in a web farm scenario?
*
How do I protect sensitive data in the database?
*
How do I protect sensitive data in configuration files?
*
How do I protect sensitive data in memory?
*
How do I protect passwords?
*
How do I secure Session State information?
Strong Naming and Signing
*
How do I strong-name an ASP.NET application assembly?
*
How do I delay sign an ASP.NET application assembly?
*
When should I use .pfx files?
*
When should I pre-compile my ASP.NET application?
*
How do I pre-compile my ASP.NET application?
*
How do I strong name an ASP.NET application?
*
How do I Sign .Net assemblies with Authenticode signature?
Obfuscation
*
How should I prevent someone from disassembling code?
Others
*
How do I set up a SQL Server or SQL Express database for Membership, Profiles and Role Management?
Return to
HomePage
Return to %5bHomePage%5d ---- %21%21%21 ASP.NET 2.0 Security FAQ s Welcome to the ASP.NET 2.0 Security FAQ page. This page provides an index to common questions and answers. The questions act as another index into the security guidance. %21%21 Authentication * %5bWhat%27s new in ASP.NET 2.0 in terms of Authentication%3f%7cASPNET2SecurityFAQ0004%5d * %5bHow do I decide my Authentication strategy in ASP.NET%3f%7cASPNET2SecurityFAQ0032%5d * %5bHow do I use Forms Authentication with SQL Server database%3f%7cASPNET2SecurityFAQ0033%5d * %5bHow do I use Forms Authentication with Active Directory%3f%7cASPNET2SecurityFAQ0005%5d * %5bHow do I enable Forms Authentication to work with multiple Active Directory domains%3f%7cASPNET2SecurityFAQ0034%5d * %5bHow do I protect Forms Authentication%3f%7cASPNET2SecurityFAQ0035%5d * %5bHow do I enforce strong passwords using membership feature in ASP.NET 2.0%7cASPNET2SecurityFAQ0036%5d * %5bHow do I protect passwords in user store%3f%7cASPNET2SecurityFAQ0037%5d * %5bWhat are the issues with Forms Authentication in Web Farm Scenario%3f%7cASPNET2SecurityFAQ0038%5d * %5bHow do I implement single sign on using forms authentication%3f%7cASPNET2SecurityFAQ0039%5d * %5bHow do I use my custom user / identity store with forms authentication%3f%7cASPNET2SecurityFAQ0040%5d * %5bHow do I configure account lockout using membership feature in ASP.Net 2.0%3f%7cASPNET2SecurityFAQ0041%5d * %5bWhen and how do I use windows authentication in ASP.NET 2.0%3f%7cASPNET2SecurityFAQ0042%5d * %5bWhen and how do I use Kerberos authentication in ASP.NET 2.0%3f%7cASPNET2SecurityFAQ0043%5d %21%21 Authorization * %5bWhat%27s new in ASP.NET 2.0 in terms of Authorization%3f%7cASPNET2SecurityFAQ0007%5d * %5bWhat is the difference between URL authorization%2c File authorization and Role authorization%3f%3f%7cASPNET2SecurityFAQ0008%5d * %5bHow do I use URL Authorization in ASP.NET 2.0%3f%7cASPNET2SecurityFAQ0044%5d * %5bHow do I use File Authorization in ASP.NET 2.0%3f%7cASPNET2SecurityFAQ0045%5d * %5bHow do I use Role Authorization in ASP.NET 2.0%3f%7cASPNET2SecurityFAQ0046%5d * %5bHow is the different from Authorization Manager APIs%3f%7cASPNET2SecurityFAQ0047%5d * %5bHow do I use Windows Groups for role authorization in ASP.NET 2.0%3f%7cASPNET2SecurityFAQ0048%5d * %5bHow do I use my custom role store for roles authorization%3f%7cASPNET2SecurityFAQ0009%5d * %5bHow do I cache roles in ASP.NET 2.0%3f%7cASPNET2SecurityFAQ0049%5d * %5bHow do I protect authorization cookie when using role caching in ASP.NET 2.0%3f%7cASPNET2SecurityFAQ0050%5d * %5bHow do I lock authorization settings%3f%7cASPNET2SecurityFAQ0051%5d * %5bHow do I use in my application%3f%7cASPNET2SecurityFAQ0099%5d %21%21 Auditing and Logging * %5bWhat%27s new in ASP.NET 2.0 in terms of Auditing and Logging%3f%7cASPNET2SecurityFAQ0052%5d * %5bHow do I use the Health monitoring feature in ASP.NET 2.0%3f%7cASPNET2SecurityFAQ0001%5d * %5bWhat all security events do health monitoring feature logs by default%3f%7cASPNET2SecurityFAQ0053%5d * %5bHow do I instrument my application for security%3f%7cASPNET2SecurityFAQ0002%5d * %5bWhen writing to a new event source from my ASP.NET application running under the Network service security context%2c I get registry permission exception. Why is this and how do I correct this%7cASPNET2SecurityFAQ0003%5d * %5bHow do I protect audit and log files%3f%7cASPNET2SecurityFAQ0054%5d %21%21 Code Access Security * %5bWhat%27s new in ASP.NET 2.0 in terms of Code Access Security%3f%7cASPNET2SecurityFAQ0011%5d * %5bHow do I use code access security with ASP.NET%3f%7cASPNET2SecurityFAQ0012%5d * %5bHow do I create a custom trust level for ASP.NET%3f%7cASPNET2SecurityFAQ0112%5d * %5bWhat are the permissions at the various trust levels%3f%7cASPNET2SecurityFAQ0055%5d * %5bHow do I write partial trust applications%3f%7cASPNET2SecurityFAQ0056%5d * %5bWhen should I put assemblies in GAC%2c what are security implications%3f%7cASPNET2SecurityFAQ0057%5d %21%21 Impersonation / Delegation * %5bWhen do I use impersonation in ASP.NET 2.0%3f%7cASPNET2SecurityFAQ0058%5d * %5bHow do I impersonate the original caller%3f%7cASPNET2SecurityFAQ0059%5d * %5bHow do I temporarily impersonate the original caller%3f%7cASPNET2SecurityFAQ0060%5d * %5bHow do I impersonate a specific %28fixed%29 identity%3f%7cASPNET2SecurityFAQ0061%5d * %5bWhen should I use programmatic impersonation%3f%7cASPNET2SecurityFAQ0062%5d * %5bHow do I use programmatic impersonation%3f%7cASPNET2SecurityFAQ0063%5d * %5bWhat is protocol transition and when do I care%3f%7cASPNET2SecurityFAQ0064%5d * %5bWhat is Constrained Delegation%3f%7cASPNET2SecurityFAQ0065%5d * %5bHow can I retain impersonation in the new thread created from ASP.NET application%3f%7cASPNET2SecurityFAQ0066%5d * %5bHow do I flow the original user identity to different layers%3f%7cASPNET2SecurityFAQ0022%5d * %5bCan impersonation be used with Forms authentication%3f%7cASPNET2SecurityFAQ0023%5d * %5bWhat are the requirements for using Kerberos delegation%3f%7cASPNET2SecurityFAQ0024%5d %21%21 Configuration * %5bWhat does a secure web.config look like%3f%7cASPNET2SecurityFAQ0067%5d * %5bHow do I encrypt sensitive data in machine.config or web.config file%3f%7cASPNET2SecurityFAQ0014%5d * %5bHow do I run an ASP.NET application with a particular identity%3f%7cASPNET2SecurityFAQ0013%5d * %5bHow do I create a service account for running my ASP.NET applications%3f%7cASPNET2SecurityFAQ0068%5d * %5bDo I need to create a unique user account for each application pool%3f%7cASPNET2SecurityFAQ0015%5d * %5bHow do I lock configuration settings%3f%7cASPNET2SecurityFAQ0069%5d %21%21 Exception Handling * %5bHow do I handle exceptions securely%3f%7cASPNET2SecurityFAQ0070%5d * %5bHow do I prevent detailed errors from returning to the client%3f%7cASPNET2SecurityFAQ0071%5d * %5bHow do I use structured exception handling%3f%7cASPNET2SecurityFAQ0072%5d * %5bHow do I setup a global exception handler for my application%3f%7cASPNET2SecurityFAQ0021%5d * %5bHow do I enable my ASP.NET application to write to new event source%3f%7cASPNET2SecurityFAQ0120%5d %21%21 Data Access * %5bHow do I protect the database connection strings in web.config file%3f%7cASPNET2SecurityFAQ0017%5d * %5bHow do I use windows authentication for connecting to SQL server%3f%7cASPNET2SecurityFAQ0073%5d * %5bHow do I use SQL authentication for connecting to SQL server%3f%7cASPNET2SecurityFAQ0018%5d * %5bWhen using Windows authentication%2c how can I give the default ASP.NET worker process access to a remote database server%3f%7cASPNET2SecurityFAQ0016%5d %21%21 Input / Data Validation * %5bWhat are the types of input I need to validate in my ASP.NET application%3f%7cASPNET2SecurityFAQ0074%5d * %5bHow do I validate input in server-side controls%3f%7cASPNET2SecurityFAQ0075%5d * %5bHow do I validate input in HTML controls%2c cookies%2c and HTTP headers%3f%7cASPNET2SecurityFAQ0076%5d * %5bWhat is SQL injection and how do I protect my application from SQL injection attacks%3f%7cASPNET2SecurityFAQ0026%5d * %5bWhat is cross-site scripting and how do I protect my ASP.NET application from it%3f%7cASPNET2SecurityFAQ0027%5d %21%21 Sensitive Data * %5bHow do I protect my web application%27s ViewState%3f%7cASPNET2SecurityFAQ0029%5d * %5bWhat care should I take when securing in a web farm scenario%3f%7cASPNET2SecurityFAQ0031%5d * %5bHow do I protect sensitive data in the database%3f%7cASPNET2SecurityFAQ0077%5d * %5bHow do I protect sensitive data in configuration files%3f%7cASPNET2SecurityFAQ0078%5d * %5bHow do I protect sensitive data in memory%3f%7cASPNET2SecurityFAQ0079%5d * %5bHow do I protect passwords%3f%7cASPNET2SecurityFAQ0080%5d * %5bHow do I secure Session State information%3f%7cASPNET2SecurityFAQ0030%5d %21%21 Strong Naming and Signing * %5bHow do I strong-name an ASP.NET application assembly%3f%7cASPNET2SecurityFAQ0081%5d * %5bHow do I delay sign an ASP.NET application assembly%3f%7cASPNET2SecurityFAQ0082%5d * %5bWhen should I use .pfx files%3f%7cASPNET2SecurityFAQ0083%5d * %5bWhen should I pre-compile my ASP.NET application%3f%7cASPNET2SecurityFAQ0086%5d * %5bHow do I pre-compile my ASP.NET application%3f%7cASPNET2SecurityFAQ0084%5d * %5bHow do I strong name an ASP.NET application%3f%7cASPNET2SecurityFAQ0085%5d * %5bHow do I Sign .Net assemblies with Authenticode signature%3f%7cASPNET2SecurityFAQ0087%5d %21%21 Obfuscation * %5bHow should I prevent someone from disassembling code%3f%7cASPNET2SecurityFAQ0088%5d %21%21 Others * %5bHow do I set up a SQL Server or SQL Express database for Membership%2c Profiles and Role Management%3f%7cASPNET2SecurityFAQ0006%5d ---- Return to %5bHomePage%5d
HTML
Preview
Cancel
Save
Edit
Delete
Edit
Comment on Post
Delete
Edit
Reply
In reply to {0}
Download:
[Pending]
Delete
Edit
Reply
In reply to {0}
Download:
[Pending]
Delete
Edit
Reply
In reply to {0}
Download:
[Pending]
Delete
Edit
Reply
In reply to {0}
Download:
[Pending]
Delete
Edit
Reply
In reply to {0}
Download:
[Pending]
Delete
Edit
Reply
In reply to {0}
Download:
[Pending]
Delete
Edit
Reply
In reply to {0}
Download:
[Pending]
Delete
Edit
Reply
In reply to {0}
Download:
[Pending]
Delete
Edit
Reply
In reply to {0}
Download:
[Pending]
Delete
Edit
Comment on Post
Be the first to comment!
Reply
Reply to root
In reply to {0}
Start related discussion
Forum:
PDC Talk
Site Feedback
Tech Off
The 9 Guy Around The World
The Coffeehouse
Subject:
Design
HTML
Preview
Tags
*Loading available tags