Article ID: 815144 - Last Review: April 30, 2003 - Revision: 1.6 HOW TO: Audit the Security of an ASP.NET Web Application or Web ServiceOn This PageSUMMARYThis step-by-step article describes how to audit the
security of an ASP.NET Web Application or an ASP.NET Web Service. The security of a system decreases as new elements are added to the system’s ideal configuration. New application installations, software updates, temporary configuration changes, and troubleshooting change aspects of a system’s security configuration. Whether intentional or unintentional, these changes may cause the system to no longer meet security requirements. To reduce this effect, perform regular audits of the system security configuration. Document and evaluate any changes to the security configuration that have been introduced to the system. When necessary, reverse these changes. This article describes the key configuration settings that affect an ASP.NET application. Document these settings when you first configure your system in its clean state. Perform regular audits to compare the current settings against the original settings. These audits help you to prevent the system’s security from degrading over time. This article does not describe how to configure these settings. For additional information about auditing security configuration items that are related to .NET Framework applications and are not ASP.NET, click the following article number to view the article in the Microsoft Knowledge Base: 815143
(http://support.microsoft.com/kb/815143/EN-US/
)
HOW TO: Audit the Security of a
.NET Framework Configuration
.NET Framework Configuration ItemsThe .NET Framework uses a hierarchy of files to determine the policy that is applied to an application. The following file contains the default configuration settings: \System Root\Microsoft.NET\Framework\Version\CONFIG\Machine.config These settings may be overridden in the application’s root
folder (or any subfolder) by a file named Web.config or ApplicationName.config. You must audit all these files to accurately assess
an application’s security configuration. The following are the important elements
of the config file:
File PermissionsInclude the NTFS file permissions that are associated with ASP.NET files and folders in your audit. These may be inherited from the parent folders, or they may be defined uniquely for each file.To easily audit the file permissions for a large number of files, use the Cacls.exe command-line utility to write the permissions to a text file. Each time that you perform an audit, compare this text file to the file that you created when the system was clean, and then note any changes. To write all file permissions that are associated with the C:\inetpub\wwwroot\ folder and all subfolders to a file named Output.txt, run the following command at a command prompt: CACLS C:\inetpub\wwwroot\* /T > output.txt IIS Configuration ItemsWindows 2000 systems support ASP.NET applications by using Internet Information Services (IIS) 5.0. When you install the .NET Framework, IIS is automatically configured to support ASP.NET. Audit the following settings in IIS regularly:
SQL Server Configuration ItemsMicrosoft SQL Server contains its own security mechanisms that function separately from the .NET Framework configuration, IIS, and NTFS file permissions. Overly permissive SQL Server rights might create a vulnerability in an ASP.NET application that might be used to compromise private data. You can view all aspects of the security configuration for SQL Server as it relates to ASP.NET access by using the SQL Enterprise Manager.Audit SQL Server Configuration Items
REFERENCES For additional information, click the following article
numbers to view the articles in the Microsoft Knowledge Base: 315736
(http://support.microsoft.com/kb/315736/EN-US/
)
HOW TO: Secure an ASP.NET Application by Using Windows Security
315588
(http://support.microsoft.com/kb/315588/EN-US/
)
HOW TO: Secure
an ASP.NET Application Using Client-Side Certificates
| Article Translations
|

Back to the top
