CyberSecBulletin

Insertion of Sensitive Information into Log File

CWE-532

The product writes sensitive information to a log file.

We track 193 vulnerabilities of this type. 99% are rated high or critical, and the average CVSS score is 7.8. 2 have been exploited in real attacks.

How this weakness is prevented

  • 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.

Latest Insertion of Sensitive Information into Log File vulnerabilities