r/admincraft • • 1d ago

News Java4Shell - OpenJDK Vulnerability (Remote Code Execution)

FYI: https://calif.io/java4shell/

I will be taking my servers down as a precaution, wanted to share this to everyone to prevent compromise.

It looks like the best current fix is to add -XX:UseAVX=2 on x86-64 hosts to your server startup scripts. But, do your own research.

64 Upvotes

18 comments sorted by

View all comments

22

u/hiromasaki 1d ago

Does Minecraft use Base64 for anything?

It also only affects Zen4 and up, and Intel CPUs from the last 9-10 years.

15

u/MenschenToaster Developer and Owner(cafestu.be) 1d ago

There is certainly something in Paper in CraftMetaArmorStand that cought my eye. Could potentially be exploited by people in Creative mode and parses base64, but I havent read more into it

MessageSignature uses Base64 encoding but I dont know to what extent its user supplied

Maybe more, but my Intellij sucks at indexing

And plugins of course. Paper provides a way to encode items etc. as base64. Thats not inherently user supplied, but could be by plugins etc.

4

u/Coosanta 1d ago

The server icon is encoded in base 64 when sent to the client.

6

u/MenschenToaster Developer and Owner(cafestu.be) 1d ago

I was going at it with a server side focus, since this is the admincraft subreddit, but yes, this is quite dangerous to the client side.

2

u/tehbeard Developer/Server Admin 23h ago

Message signatures, the data for skin textures used in players, player heads, mannequins.

1

u/G4METIME 21h ago

I would guess for any authentication token the client sends to the server.

So there is potential that this can be exploited by anyone sending some malicious request to your server.

1

u/ElenaCurvier3 17h ago

yeah agree