Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-12 (ASP.NET误配置:缺少定制错误页面) — Vulnerability Class 1

1 vulnerabilities classified as CWE-12 (ASP.NET误配置:缺少定制错误页面). AI Chinese analysis included.

CWE-12 represents a configuration weakness in ASP.NET applications where the absence of custom error pages allows sensitive framework-generated responses to leak to end-users. Attackers typically exploit this vulnerability by triggering exceptions, such as invalid URLs or malformed requests, to force the server to return detailed stack traces, internal file paths, or database connection strings. These verbose error messages provide attackers with valuable reconnaissance data, facilitating further targeted attacks like SQL injection or directory traversal. To mitigate this risk, developers must explicitly configure the application’s web.config file to enable custom errors. This involves defining specific custom error pages for different HTTP status codes and ensuring that detailed error information is suppressed in production environments, thereby ensuring that users see only generic, non-revealing messages while the application logs the actual technical details securely for administrative review.

MITRE CWE Description
An ASP .NET application must enable custom error pages in order to prevent attackers from mining information from the framework's built-in responses.
Common Consequences (1)
ConfidentialityRead Application Data
Default error pages gives detailed information about the error that occurred, and should not be used in production environments. Attackers can leverage the additional information provided by a default error page to mount attacks targeted on the framework, database, or other resources used by the app…
Mitigations (3)
System ConfigurationHandle exceptions appropriately in source code. ASP .NET applications should be configured to use custom error pages instead of the framework default page.
Architecture and DesignDo not attempt to process an error or attempt to mask it.
ImplementationVerify return values are correct and do not supply sensitive information about the system.
Examples (1)
The mode attribute of the <customErrors> tag in the Web.config file defines whether custom or default error pages are used.
<customErrors mode="Off" />
Bad · ASP.NET
<customErrors mode="RemoteOnly" />
Good · ASP.NET
CVE IDTitleCVSSSeverityPublished
CVE-2020-6994 Belden HiOS 输入验证错误漏洞 — HiOS for the following devices RSP, RSPE, RSPS, RSPL, MSP, EES, EES, EESX, GRS, OS, RED 9.8 -2020-04-03

Vulnerabilities classified as CWE-12 (ASP.NET误配置:缺少定制错误页面) represent 1 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.