by brasetvik · 4y ago · 0 comments
I tried reproducing this, and got the POC to hit the LDAP server, but it wouldn't load the test payload.
See also:
- https://github.com/tangxiaofeng7/apache-log4j-poc
- https://github.com/mbechler/marshalsec
- https://github.com/veracode-research/rogue-jndi
Minecraft servers were being actively exploited according to various tweets.
While RCE is not possible without these flags, you will still get pingback, in minecraft's example, allowing you to get the IP of everyone connected.
See https://www.veracode.com/blog/research/exploiting-jndi-injec...
I got the POC to RCE with `-Dcom.sun.jndi.ldap.object.trustURLCodebase=true` seeming sufficient.
While still not great, I'd expect that to meaningfully reduce the severity for most, as that seems a pretty … odd option to enable.
https://github.com/openjdk/jdk8u/commit/006e84fc77a582552e71...
This change is included in tag jdk8-b01, which was the first release build of Java 8.
I don't think this exploit as described actually works against a default-configured JVM released any time in the last decade. Is there actually an executable PoC which shows otherwise?
Now, it's true there are ways to exploit deserialisation without loading code. You need to find a class in the classpath that does something sketchy when deserialised. There has been a lot of work to clean up such things in recent years, but it's possible some still exist. Again, i would like to see a PoC.