JAVA-040 / Intermediate
Log injection: logging user-supplied newlines
Why is this a problem?
A newline (\n) can create forged log lines.
How to fix it
java
log.info("login failed user={}", sanitize(id)); // Remove newlines and control characters; bind parameters