-
Notifications
You must be signed in to change notification settings - Fork 769
Description
The page "Poor Logging Practice" is incomplete and is missing information:
-
"Risk Factors" says "TBD"
-
A lot of sections contain dummy values, e.g. "Examples", "Related Attacks", ...
-
The sections say "good practice" / "poor practice" without ever explaining why it is considered good or bad; this is not very helpful
-
Given that this is an OWASP page, and the URL path even includes
.../vulnerabilities/..., the page never properly mentions what the security aspects are. The only vague security related statement it contains is:It can also cause log messages accidentally returned to the end users, revealing internal information to attackers.
When the use of system output streams is jumbled together with the code that uses loggers properly, the result is often a well-kept log that is missing critical information. In addition, using system output streams can also cause log messages accidentally returned to end users, revealing application internal information to attackers.
(I am not completely sure though what "cause log messages accidentally returned to the end users" is supposed to mean here, is that about log injection (that has its own page already)?)
If there are really security aspects to this, then it would be good if they are more clearly highlighted (especially for non-static final loggers and multiple loggers). Otherwise if this is just general programming advice maybe this should not be part of the OWASP articles?