by Woodi · 4y ago · 0 comments
And all that log4fun is much more then one or two libraries bugs. Maybe even no or almoust no software bugs involwed ?
List of "features" in play :>
- log4j include realy rich log messages parser...
- not proper usage of logs formats
- log4j have ability to call to the network...
- Internet calls are allowed from backend facing service like logger...
- parsing "dot" have surprising effects - did't saw that in code, info after HN comments
- log4j have ability to ask any database including LDAP for configuration
- configuration have form of executable code :> .class WTF !!!
- Java have ability to load .class files at runtime, analogous to linker .so/.dll files. Except Java can do this for files from network. Buitl-in feature, pretty automatic :>
- security manager was off on JNDI, probably becouse naming services like directories for names and configurations are supoused to be internal and protected...
- no one use Java sacurity manager, at least it's very serious and enterprise-only black magic (voices in the internet: no! it's not so hard to use ! just some certs!)
- security manager is planned to be removed from Java anyway :)
- security bugs from years ago didn't realy fixed...
and last but no least:
- Minecraft servers are being hacked all over the world ! Chaos and panic ! :)
Something more ? :)
Now, do loading executables from network is standard enterprisy practice ? Getting .dll's or COMs from db ? I hear once from Sun employee about SQL queries looked up from LDAP server. But it is Oracle now...
It sounded funny, but last night I was laying on my bed watching my last video of the day uploaded by a Minecraft YouTuber (xisumavoid actually) who mentioned the "Critical Security Issue". Back then my first reaction was "HA! suck on that Mojang!" without a single awareness of how bad things actual turned out.
I guess if you're a Java dev, subscribe to Minecraft news really helps (a little, maybe) LOL.
This is fake. There are no "parsing dot have surprising effects" part in this bug. Actually there is no bug at all. All we have is a documented (though misleading) "hey you can call anything JNDI in your log message" INTENDED FEATURE.
Multiple people said they were able to trigger the RCE by supplying the syntax in question in log parameters, so the CVE is independent of whether people let users provide a format string or not (log.info("foo: %s", var) vs. log.info(var)).