Search:     Advanced search
server monitoring

ASP.NET Misconfiguration: Creating Debug Binary

Article ID: 137
Last updated: 08 May, 2008
Views: 279
Posted: 08 May, 2008
by: Tech Pubs S.
Updated: 08 May, 2008
by: Tech Pubs S.

ASP.NET Misconfiguration: Creating Debug Binary

Abstract

Debugging messages help attackers learn about the system and plan a form of attack.

Description

ASP .NET applications can be configured to produce debug binaries. These binaries give detailed debugging messages and should not be used in production environments. The debug attribute of the <compilation> tag defines whether compiled binaries should include debugging information. Symbols (.pdb files) tell the debugger how to find the original source files for a binary, and how to map breakpoints in code to lines in those source files.

The use of debug binaries causes an application to provide as much information about itself as possible to the user. Debug binaries are meant to be used in a development or testing environment and can pose a security risk if they are deployed to production. Attackers can leverage the additional information they gain from debugging output to mount attacks targeted on the framework, database, or other resources used by the application.

Examples

To identify this vulnerablity, look for the following pattern on the compilation section within the system.web group of the Web.config file at the application's root directory:

 <configuration>
   <compilation debug="true"/>
 </configuration>

This article was:   Helpful | Not Helpful
Prev   Next
Code Permission Vulnerability     ASP.NET Misconfiguration: Missing Custom Error Handling