Live data from Hacker News

Log4Shell update: second Log4j vulnerability published

lunasec.io

81–90 of 289 posts

Re: Log4Shell update: second Log4j vulnerability published

#81
Insightful conversations at https://github.com/apache/logging-log4j2/pull/608 - the original vulnerability patch.

Most JNDI lookups are disabled, except for JAVA and _LDAP(S)_. What I don't get is why would someone who knows about the vulnerability would _still_ want to do LDAP lookups during logging, even when restricted to localhost.

Re: Log4Shell update: second Log4j vulnerability published

#82
post #65

Earlier quoted context omitted.

Here's the alleged original Jira ticket: https://issues.apache.org/jira/browse/LOG4J2-313 PS: Don't post snarky comments on an 8-year old Jira ticket, please.

Too late, someone already posted this comment 2 days ago: "nice work ;)"

poor woonsan :(

Re: Log4Shell update: second Log4j vulnerability published

#83
post #64

Earlier quoted context omitted.

Just read through some of that. My favorite response: "Is it wrong to use a log4j exploit as a password? I mean, passwords shouldn't be coming anywhere near logging code... right?" How many times have we heard of raw text passwords being saved in logs?

Only once. At Facebook: https://krebsonsecurity.com/2019/03/facebook-stored-hundreds...

And google:

https://www.theverge.com/2019/5/21/18634842/google-passwords...

Re: Log4Shell update: second Log4j vulnerability published

#85
post #13

We also wrote a Log4Shell payload that will in-memory "hot patch" your server against Log4Shell. ${jndi:ldap://hotpatch.log4shell.com:1389/a} If you paste that into a vulnerable server (or even throw it into a log statement in your `main` function), that'll patch you against this until you can manage to update properly. Source code is on GitHub here[0][1] if you want to host it yourself. (This work is based on Logout…

[deleted]

Re: Log4Shell update: second Log4j vulnerability published

#86
I have a feeling this vulnerability is going to be with us for years. Shameless plug: I built a tool that assists in detecting whether you're vulnerable to this or the previous CVE: https://log4shell.tools. Just enter the JNDI URI it gives you anywhere you suspect it ends up causing a message lookup in log4j. If log4j does so much as a DNS lookup, this tool will tell you about it.

Re: Log4Shell update: second Log4j vulnerability published

#87
post #35

Earlier quoted context omitted.

run a Digital Ocean droplet hosting the server? It's up to you if the costs justify the benefits.

This why I've given up and just pay to host anything external to scratch my self hosting itch. If they somehow manage to get in at least they won't be roaming around inside my home network. The flood of failed auth attempts and weird looking strings being sent to my web server is never ending. It might be something worth reconsidering once the world is on IPv6 and we have proper subnetting we can use at home.

> If they somehow manage to get in at least they won't be roaming around inside my home network.

I mean if that’s your only concern, it’s pretty easy to run Minecraft in a docker container that’s only allowed to accept inbound connections and to make outbound connections to the internet (or more specifically to the Mojang auth server)

Re: Log4Shell update: second Log4j vulnerability published

#88
post #13

We also wrote a Log4Shell payload that will in-memory "hot patch" your server against Log4Shell. ${jndi:ldap://hotpatch.log4shell.com:1389/a} If you paste that into a vulnerable server (or even throw it into a log statement in your `main` function), that'll patch you against this until you can manage to update properly. Source code is on GitHub here[0][1] if you want to host it yourself. (This work is based on Logout…

people should rename their iphone, tesla [0] and other devices to this to patch servers!

[0] https://www.theverge.com/2021/12/13/22832552/iphone-tesla-sm...

Re: Log4Shell update: second Log4j vulnerability published

#89

Earlier quoted context omitted.

Here's the alleged original Jira ticket: https://issues.apache.org/jira/browse/LOG4J2-313 PS: Don't post snarky comments on an 8-year old Jira ticket, please.

I have read that ticket and the JNDI documentation multiple times and I still can't picture what it would look like to choose to use this. Can anyone show me a codebase that utilises this feature so we can see why?

The key thing is that one of the directory services you can use via JNDI is "java", which is a process-local configuration store present by default in enterprise (Java EE) applications. An enterprise web server can run multiple "applications" at once, and each one gets its own configuration in the java directory service.

So, if you have defined a configuration variable app-name-for-logging, then you can look up:

  java:comp/env/app-name-for-logging
to get the value. If you are writing a generic logging utility which works across many applications, it might be useful to use this to choose the log file, or just include it in the log output.

The easiest implementation of this was just to allow generic JNDI lookups, which includes LDAP.

What i can't explain is why anyone would legitimately use this feature to make JNDI lookups. It should have been scoped to only lookups in java:comp/env, not arbitrary ones.

Re: Log4Shell update: second Log4j vulnerability published

#90

Earlier quoted context omitted.

Why would IPv6 make a difference? Addresses aren't private information and they aren't given out randomly.

It's easy to traverse the entire IPv4 space by brute force. Not so with IPv6

It only takes visiting one site / using one app to have your ipv6 leaked and added to a database of ips that should be scanned.
Post reply on HN