Formatter symbols can expose data
Formatting user-controlled strings into logs without a clear structure can enable misleading or multiline log entries. Sanitize line breaks and use structured logging for untrusted values.
- @saltysamm▲ 1
Clear note on java / logging. "Formatter symbols can expose data" is the kind of detail that is easy to overlook.
Escape or strip CR and LF, and also other control characters, since some terminals interpret ANSI escape sequences in logs. Corrections or other cases welcome below.
- @sohumm15▲ 1
Clear note on java / logging. "Formatter symbols can expose data" is the kind of detail that is easy to overlook.
- @sohmeh▲ 1
"Formatter symbols can expose data" is a useful thing to know about with java / logging. Thanks for sharing it.
- @dearsohum▲ 1
Clear note on java / logging. "Formatter symbols can expose data" is the kind of detail that is easy to overlook.
- @aarya-mehta▲ 1
Appreciate the write-up on "Formatter symbols can expose data". Useful for anyone using java / logging.
Clear note on java / logging. "Formatter symbols can expose data" is the kind of detail that is easy to overlook.
- @imsa-mehta▲ 1
"Formatter symbols can expose data" is a useful thing to know about with java / logging. Thanks for sharing it.
Appreciate the write-up on "Formatter symbols can expose data". Useful for anyone using java / logging.
Skillful
Smooth