CWE-215: Insertion of Sensitive Information Into Debugging Code

Export to Word

Description

The product inserts sensitive information into debugging code, which could expose this information if the debugging code is not disabled in production.

Extended Description

When debugging, it may be necessary to report detailed information to the programmer. However, if the debugging code is not disabled when the product is operating in a production environment, then this sensitive information may be exposed to attackers.


ThreatScore

Threat Mapped score: 3.0

Industry: Finiancial

Threat priority: P2 - Serious (High)


Observed Examples (CVEs)

Related Attack Patterns (CAPEC)

N/A


Attack TTPs

N/A

Modes of Introduction

Phase Note
Implementation N/A

Common Consequences

Potential Mitigations

Applicable Platforms


Demonstrative Examples

Intro: The following program changes its behavior based on a debug flag.

Body: The code writes sensitive debug information to the client browser if the "debugEnabled" flag is set to true .

<% if (Boolean.getBoolean("debugEnabled")) { %> User account number: <%= acctNo %> <% } %>

Notes

← Back to CWE list