Encoding aside, the brilliance of the Date header is that it cancels out most of clock skew between the client and the server.
When HTTP 1.0 was new, we still had computers with CR-2032 batteries on the motherboard to run a clock while the computer was off, and I ran into so many people while doing tech support whose computers thought it was January 2, 1970 because they'd not once thought to replace that battery.
When the server tells you that the document expires on Thursday and it's currently Wednesday, you know how long to keep it for, even if you think it's Tuesday at the moment.
So the two ends of the link can nail down clock skew to a little more than the speed of light delay between them, and Berners-Lee thought of this problem sometime back around 1990. It is actually my favorite header because of that.
I know I used this on one project to solve a particularly hairy consensus problem but I can't remember which, now.
99.99% yes. especially when the connections are tls encrypted. java uses it under the hood extensively, and even if you don't use it in your own code directly, you are probably using / hooking into a library that does (knowingly or otherwise)
you should assume that every java app that accepts user input is vulnerable
From what I have audited so far, it seems that the only attack surface here is server -> client via favicon, could not find any client -> server at all.
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.
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.
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.
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
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.
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.
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
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...
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 7d ago
I cannot imagine the impact if this affects Minecraft servers...
19
u/hff0 7d ago
so it doesn't affect jdk8, gtk
41
u/siromega37 7d 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.
23
u/SlaminSammons 7d 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.
6
u/Comic_Melon 7d ago
I'm tired boss
-1
u/TCB13sQuotes 7d ago
No worries, PHP sucks, Java is perfect this is not a problem. :)
-10
u/st4rdr0id 7d 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:UseUntrustedStuffencompassing 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.-18
u/owen800q 7d ago
can AI like claude code help me to patch it?
0
u/[deleted] 7d ago
[deleted] — view deleted comment
0
u/[deleted] 7d ago
[deleted] — view deleted comment