CWE-532 · Słabość
Insertion of Sensitive Information into Log File
- Abstrakcja
- Bazowa
- Status
- Niekompletny
- Ryzyko wykorzystania
- średnie
- Dodano
- 19 lipca 2006
- Ostatnia zmiana
- 11 grudnia 2025
Opis
The product writes sensitive information to a log file.
Skutki
Confidentiality
Read Application Data
Logging sensitive user data, full path names, or system information often provides attackers with an additional, less-protected path to acquiring the information.
Zapobieganie
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.
Przykłady podatności
- 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
Słabość nadrzędna
Kiedy powstaje
- Architecture and Design — COMMISSION: This weakness refers to an incorrect design related to an architectural security tactic.
- Implementation
- Operation
Dotyczy
Not Language-Specific
Wpis z katalogu CWE 4.20.