CWE-532

Insertion of Sensitive Information into Log File

Medium

Description

The product writes sensitive information to a log file.

Potential Impact

How to Fix

Architecture and Design

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

Distribution

Remove debug log files before deploying the application into production.

Operation

Protect log files against unauthorized read/write.

Implementation

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

Detection Methods

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-532 vulnerabilities in your codebase.

Get Security Assessment