Function prints sensitive data
This defect occurs when print functions such as stdout or
stderr print sensitive information.
The checker considers the following as sensitive information:
Return values of password manipulation functions such
as getpw, getpwnam or getpwuid.
Input values of functions such as the Windows®-specific
function LogonUser.
Printing sensitive information, such as passwords or user information, allows an attacker additional access to the information.
One fix for this defect is to not print out sensitive information.
If you are saving your logfile to an external file, set the file permissions so that attackers cannot access the logfile information.
| Group: Security |
| Language: C | C++ |
| Default: Off |
Command-Line Syntax: SENSITIVE_DATA_PRINT |
| Impact: Medium |
| CWE ID: 532, 534, 535 |
Find defects (-checkers) | Sensitive heap memory not cleared before release | Uncleared sensitive data in stack