Information written to log files can be of a sensitive nature and give valuable guidance to an attacker or expose sensitive user information.
Extended Description
While logging all information may be helpful during development stages, it is important that logging levels be set appropriately before a product ships so that sensitive user data and system information are not accidentally exposed to potential attackers.
Time of Introduction
Architecture and Design
Implementation
Operation
Common Consequences
Scope
Effect
Confidentiality
Technical Impact: Read application
data
Logging sensitive user data often provides attackers with an
additional, less-protected path to acquiring the information.
Likelihood of Exploit
Medium
Demonstrative Examples
Example 1
In the following code snippet, a user's full name and credit card
number are written to a log file.