r/java • u/ryanmerket • 5d ago
Calif discloses Java4Shell flaw in OpenJDK's Base64 decoder
https://runtimewire.com/article/calif-discloses-java4shell-flaw-in-openjdk-s-base64-decoder
128
Upvotes
39
u/SleeperAwakened 5d ago
This is really really bad, we have some patching to do!
Better to link to the source!
https://calif.io/java4shell/
14
u/TomKavees 5d ago edited 5d ago
Looks like this can be mitigated by command line switches, so it's not as catastrophic as the title suggests
Edit: tl;dr of sorts - per https://calif.io/java4shell/
1
u/starkake 19h ago
I went through description. So, in order to do something:
- you need to find app that has base64 public endpoint
- run specific version of CPU
- has specific jdk/jre (sadly this is the weakest point)
- create attack that will build some portion of memory by invoking a lot of requests to that endpoint
- if there is traffic to that service memory complexity of the attack goes up
- if there are more than one instance or restart you are starting from scratch or need much higher traffic to that endpoint
- there is no actual shell you can start out of the box.
Am I reading this wrongly? I mean, strategy “patch, don’t panic” should be applied in my opinion here 🤷♂️ and honestly it looks like normal buffer overflow bug. We had millions of those in libs already. Nothing like log4shell…