News for hackers. Stuff that matters.
Re:Log4j RCE Found by dylan604 on Thursday December 09, 2021 @10:03PM (#29505976)
Why would you ever trust user provided input? Like seriously, ever?

I don't trust my own input. I tend to copy&paste, and I've messed up from pasting something that was previously in the clipboard because I didn't actually hit the right keyboard shortcut when I was copying the data I thought I was. I wasn't even attempting to be malicious, but I accidentally tried a SQL Inject attack on myself because of it.

DON'T EVER TRUST USER PROVIDED INPUT!!! AHHHHH!

Re:Log4j RCE Found by lvh on Thursday December 09, 2021 @10:55PM (#29506215)
Eh. I think it's pretty reasonable that people assume their logging library doesn't have random RCE, and I think it's pretty reasonable people aren't going to be able to filter every parameter based on Log4J having a relatively obscure bug.
Re:Log4j RCE Found by a-dub on Thursday December 09, 2021 @11:10PM (#29506298)
think about the complexity involved in a modern backend. those log messages are flowing through logging libraries and a local syslog at an absolute minimum. more exotic setups involve consolidators, indexing/searching, user interfaces that may be controlled by any number of operators. moreover, those who use these tools typically have the keys to the kingdom for their respective environments.
Re:Log4j RCE Found by lvh on Friday December 10, 2021 @12:16PM (#29512488)
Right! What would filtering even look like? This seems like an unreasonable burden on the developer.
Re:Log4j RCE Found by dsrw on Thursday December 09, 2021 @11:42PM (#29506478)
I agree, but certain operations need to safely accept untrusted input if I'm going to handle input at all. Running a regex on user input doesn't mean I trust the input. It means I trust my regex engine. I should be able to trust my logger the same way.
Re:Log4j RCE Found by dylan604 on Thursday December 09, 2021 @11:53PM (#29506538)
if your logger is running an eval, you shouldn't trust it one bit
Re:Log4j RCE Found by immibis on Friday December 10, 2021 @06:11AM (#29508586)
The issue is, what counts as "trust"? Logging input isn't trusting it. Or at least it's not supposed to be.