Sensitive data printed out
Function prints sensitive data
Description
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
orgetpwuid
.Input values of functions such as the Windows®-specific function
LogonUser
.
Risk
Printing sensitive information, such as passwords or user information, allows an attacker additional access to the information.
Fix
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.
Examples
Result Information
Group: Security |
Language: C | C++ |
Default: Off |
Command-Line Syntax: SENSITIVE_DATA_PRINT |
Impact: Medium |
Version History
Introduced in R2015b
See Also
Sensitive heap memory not cleared before release
| Uncleared sensitive data in stack
| Find defects (-checkers)
Topics
- Interpret Bug Finder Results in Polyspace Desktop User Interface
- Interpret Bug Finder Results in Polyspace Access Web Interface (Polyspace Access)
- Address Results in Polyspace User Interface Through Bug Fixes or Justifications
- Address Results in Polyspace Access Through Bug Fixes or Justifications (Polyspace Access)