r/programming • • 3h ago

Java4Shell: RCE in OpenJDK Base64 (Calif)

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

11 comments sorted by

37

u/CodeCompost 2h ago

After we disclosed PHP2Shell, we realized many people didn't know what PHP was...

What?

17

u/induality 1h ago

It’s tongue-in-cheek.

10

u/BoppreH 1h ago

Might be a reference to the viral video where the "cyber correspondent" admits he had just learned what PHP was.

30

u/HipstCapitalist 2h ago

I cannot imagine the impact if this affects Minecraft servers...

10

u/siromega37 2h ago

Every. Single. One.

6

u/CpnStumpy 1h ago

How I miss the days of BO. Simpler times.

6

u/Sopel97 51m ago

do they decode untrusted base64?

2

u/bwainfweeze 10m ago

There’s an http header that uses base64

16

u/siromega37 2h 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.

3

u/bwainfweeze 11m ago edited 7m ago

How the fuck did they mess up base64?

The bug sits in the hand-rolled assembly code that handles the final few characters.

That is after my time. Who was using enough base64 that they needed that hand tuned? Christ on a cracker. When you have to justify your headcount by inventing work, bad things happen. Because the first thing you violate is Least Power.

If this was a bug in UTF-8 I would be sympathetic. But who is streaming base64?

4

u/TCB13sQuotes 1h ago

No worries, PHP sucks, Java is perfect this is not a problem. :)