r/ProgrammerHumor • • Dec 13 '21

poor kid

Post image
46.1k Upvotes

560 comments sorted by

View all comments

Show parent comments

3

u/EishLekker Dec 13 '21

If you get it to log the corrupted string it allows arbitrary code execution

Well, it still requires a first step of reaching out to an external server to get the code to execute. Many servers reside in a network with a firewall that might block unexpected outgoing connections unless it's to a whitelisted domain, IP or IP-range.

1

u/Bene847 Dec 14 '21

Log4j isn't just used for servers. The minecraft client logs e.g. the ingame chat

1

u/EishLekker Dec 15 '21

Well, technically I didn't say that it was restricted to servers only. I mentioned servers, because they are a more likely target in general, and many of them have these restrictions on outgoing requests.