CWE-12: ASP.NET Misconfiguration: Missing Custom Error Page

VariantDraft

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

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
ASP.NET
Platforms

Frequently Asked Questions

What is CWE-12: ASP.NET Misconfiguration: Missing Custom Error Page?+

CWE-12: ASP.NET Misconfiguration: Missing Custom Error Page is a Common Weakness Enumeration (CWE) entry maintained by MITRE. An ASP .NET application must enable custom error pages in order to prevent attackers from mining information from the framework's built-in responses.

What are the security consequences of ASP.NET Misconfiguration: Missing Custom Error Page?+

If exploited, CWE-12 (ASP.NET Misconfiguration: Missing Custom Error Page) it can compromise Confidentiality, leading to outcomes such as Read Application Data.

How do you prevent or mitigate ASP.NET Misconfiguration: Missing Custom Error Page?+

Recommended mitigations for CWE-12 include: Handle exceptions appropriately in source code. ASP .NET applications should be configured to use custom error pages instead of the framework default page. Do not attempt to process an error or attempt to mask it. Verify return values are correct and do not supply sensitive information about the system.

Which programming languages are affected by ASP.NET Misconfiguration: Missing Custom Error Page?+

CWE-12 commonly affects ASP.NET. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-12 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More