CWE-12

ASP.NET Misconfiguration: Missing Custom Error Page
AI Translation Available

An ASP .NET application must enable custom error pages in order to prevent attackers from mining information from the framework's built-in responses.

Status
draft
Abstraction
variant
ASP.NET

Common Consequences

confidentiality
Impacts
read application data

Potential Mitigations

Phases:
system configuration architecture and design implementation
Descriptions:
• Handle exceptions appropriately in source code. ASP .NET applications should be configured to use custom error pages instead of the framework default page.
• Verify return values are correct and do not supply sensitive information about the system.
• Do not attempt to process an error or attempt to mask it.