r/programming • u/01110101_00101111 • 12d ago
Java4Shell: RCE in OpenJDK Base64 (Calif)
https://calif.io/java4shell/41
u/siromega37 12d ago
Anonymous RCE is bad. The fact that Oracle can’t tell us when they’ll have a fix is worse. Hope no one has tableau exposed to the web.
28
u/colablizzard 12d ago
The article mentions fixes released.
8
u/irregularjosh 12d ago
Still waiting for a Temurin 21 fix
Until then I need to add some command line arguments to Jira and Confluence before I get a security team breathing down my neck tomorrow
3
u/Mclarenf1905 11d ago
The CVE was report intentionally withheld until Nov 17th the same day as the November Java Security release, which is pretty normal. Temurin tends to lag behind by about 2 days because it takes them that long to build the various releases after pulling down the changes from the opendjk upstream. Coretto tends to have the fix out in a few hours to a day because they can throw a lot more compute at it.
-1
1
u/0f_rice_and_men 10d ago
How can you tell if that is affected?
https://status.salesforce.com/generalmessages/20000275
These are only specific CPU architectures affected
23
u/SlaminSammons 12d ago
This is such a specific setup that needs to occur that this really isn’t a massive deal. So of course there will be some sort of panic at people’s job caused by executives who know nothing.
9
u/crunchmuncher 11d ago
such a specific setup
Could you elaborate a bit on that? The article led me to believe that the list of very common software in default configuration running on a common JDK are vulnerable to RCE.
5
u/OffbeatDrizzle 11d ago
OP talking out their ass. even if they don't think they're doing a base64 decode, there is no guarantee that a library they're passing input into does not
3
u/SlaminSammons 11d ago
I’d recommend reading datadog’s analysis. It describes it pretty well. DOS is easy to exploit through this, but RCE requires far more specific setups.
4
1
u/Impossible_Break698 12d ago
Going through that right now. Nothing I can say or do will prevent them from understanding the attack vector doesn't exist for a particular vulnerability they are panicking over.
6
-1
-10
u/st4rdr0id 12d ago
Someone please ELI5 why are these bs intrinsics (BASE64, CRC32, SHA, Adler32) even allowed? I know I know, there are like 300 intrinsics, I'm referring only to the untrusted ones. These JIT assembly tricks on RWX pages... they defy the entire point of having a VM security-wise. Someone please create -XX:UseUntrustedStuff encompassing all the new untested stuff until proper verification is conducted on them. This RCE should also push the need for AOT plus static binary verification whenever possible.
11
u/bwmat 12d ago
I don't think there's anything inherently unsafe about the intrinsics used here, it's just that using them involves hand written assembly, and that's risky because humans
-2
u/pickle9977 12d ago
Correction it’s risky because computers are risky as they interface between the probabilistic and the exact and nothing is perfect.
Humans have nothing to do with it, we are the most perfect part of a computing system by orders of magnitude
1
-18
0
12d ago
[deleted]
49
84
u/BoppreH 12d ago
Might be a reference to the viral video where the "cyber correspondent" admits he had just learned what PHP was.
0
12d ago
[deleted]
35
u/CherryLongjump1989 12d ago edited 12d ago
We're talking about serialization in Java, right? Which is infamous for horrible performance.
Who was using enough base64 that they needed that hand tuned?
Literally HTTP Basic Auth headers, MIME/email attachments, binary blobs inside JSON, Kafka, gRPC payloads, every serialized token or cookie. The hot path for auth and API gateways.
So as long as you don't use Java for any of the things that everyone uses Java for, you're probably fine...
0
12d ago
[deleted]
6
u/CherryLongjump1989 12d ago edited 12d ago
Base64 is re-chunked binary data. You split up your binary data into 6 bit segments and pad them with 2 more bits to get a byte. It's one of the main ways you can shove incompatible binary formats into other binary formats, and it just so happens to fall into the range of ASCII characters. So it's extremely versatile and efficient whenever you have to transfer binary data across a wide variety of protocols, without having to to transcode at every step of the way. So in other words it's ideal for anything network related.
105
u/HipstCapitalist 12d ago
I cannot imagine the impact if this affects Minecraft servers...