CWE Database
/

CWE-532

Back to CWE list

CWE-532

Insertion of Sensitive Information into Log File

Base
Incomplete

Description

The product writes sensitive information to a log file.

Common Consequences

Scope

Confidentiality

Impact

Read Application Data

Potential Mitigations

Architecture and Design
Implementation

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.

CVE-2017-9615

verbose logging stores admin credentials in a world-readable log file

CVE-2018-1999036

SSH password for private key stored in build log

Applicable Platforms

Not Language-Specific

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now