DEV Community

Discussion on: Massive Log4j Java vulnerability: What it is & how to fix it?

Collapse
 
mukundmadhav profile image
Mukund Madhav

In most cases, you won't know what gets logged.

But if we use the plethora of other Apache libraries like Struts, they are suspected to log User Agents. So even if you don't log the user inputs, this other library might be doing it.

So instead of checking, if you log the user headers/input, the best way to avoid getting into this situation is to disable JNDI for logs altogether.

Thread Thread
 
_hs_ profile image
HS

As @@jayjeckel asked, I did have an illusion that other companies have better practices in place like JNDI would be disabled and no logging in app about these things but through proxies. Now I finally understand why I don't fit in companies and keep looking for job after job every 1-2 years. It's an illusion I can't escape of expectations too high.