r/programming • • 15d ago

Java4Shell: RCE in OpenJDK Base64 (Calif)

https://calif.io/java4shell/
321 Upvotes

45 comments sorted by

View all comments

-10

u/st4rdr0id 15d 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 15d 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 15d 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

u/entronid 14d ago

this specific problem is a human problem though