Rule Definition
The mode attribute of the tag defines whether custom or default error pages are used.
The default error page will provide detailed information about the error that occurred and should not be used in a production environment.
An ASP .NET application must enable custom error pages in order to prevent attackers from mining
information from the framework's built-in error responses.
Remediation
Enable custom errors
Violation Code Sample
<customErrors mode="Off"/>
Fixed Code Sample
<customErrors mode="On"/>
Reference
https://cwe.mitre.org/data/definitions/12.html
Related Technologies
Technical Criterion
Programming Practices - Error and Exception Handling
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.