CyberSecBulletin

Generation of Error Message Containing Sensitive Information

CWE-209

The product generates an error message that includes sensitive information about its environment, users, or associated data.

We track 89 vulnerabilities of this type. 98% are rated high or critical, and the average CVSS score is 8.0. 3 have been exploited in real attacks.

How this weakness is prevented

  • Implementation: Handle exceptions internally and do not display errors containing potentially sensitive information to a user.
  • Implementation: Use naming conventions and strong types to make it easier to spot when sensitive data is being used. When creating structures, objects, or other complex entities, separate the sensitive and non-sensitive data as much as possible.
  • Implementation Build and Compilation: Debugging information should not make its way into a production release.
  • Implementation Build and Compilation: Debugging information should not make its way into a production release.
  • System Configuration: Where available, configure the environment to use less verbose error messages. For example, in PHP, disable the display_errors setting during configuration, or at runtime using the error_reporting() function.

Latest Generation of Error Message Containing Sensitive Information vulnerabilities