Skip to content
OpenAdvisories

Weakness (CWE)

CWE-532: Insertion of Sensitive Information into Log File

Base Incomplete

The product writes sensitive information to a log file.

How to prevent it (4 mitigations)
  1. Architecture and Design, Implementation

    Consider seriously the sensitivity of the information written into log files. Do not write secrets into the log files.

  2. Distribution

    Remove debug log files before deploying the application into production.

  3. Operation

    Protect log files against unauthorized read/write.

  4. Implementation

    Adjust configurations appropriately when software is transitioned from a debug state to production.

Source: MITRE CWE-532

2 results · Clear filters · Feed