Discussion Java4shell
Hey everyone,
im schocked: https://community.ui.com/questions/UniFi-OS-Server-5-1-42-bundles-Temurin-2536-is-it-affected-by-Java4Shell-CVE-2026-114938/aaa10ff6-dde4-453f-b999-cf637fbdf07b
No patches? Every unifi controller should be already compromised?!
3
u/throwaway12-ffs 11h ago
Don't put your unifi controller on an untrusted network and you won't get compromised (at least it cuts down probability over 80%).
Unless you already have an attacker on your network.
-2
u/karno90 7h ago
And what to do if you manage hundred of clients with aps only? You have to cloud host - and not everyone got a cloudkey, public ip for firewalling etc? And second: I dont trust ubnt with their unifi.ui.com cloud reverseproxy - gilnet goodcloud ….
I asked years ago if you could can put low level htaccess infront of inform url and webui - this would harden the system the right way - but no answer.2
u/throwaway12-ffs 6h ago
There are remote access solutions. Unifi is NEVER supposed to be on the internet. It's absolutely retarded for it to be.
1
1
u/Square_Move_833 6h ago
Why are you remote managing clients that don't have cloudkey/public IPs behind a firewall?
It sounds like you should be upset with yourself.
2
u/WaHooCrazy7 9h ago
I ended up swapping out the Java runtime but had to build my own image to do it. Though I’m already coloring outside the lines by running uos server as a container on k8s. That being said it’s not great that they haven’t pushed a patch
12
u/Obvious_Class394 14h ago
Yeah. They should address it promptly.
I can only think of a few ways to compromise a controller.
You have a bad actor on your internal network. You have larger problems than a compromised controller if this is the case
A user on your network does something dumb that ends up running some malicious script
Admin exposes the interface to the public internet. Never do this. Might as well hang up a “please hack me” sign
One action to take is to limit who can connect to port 443 on the controller. For example, an IoT VLAN probably has no reason to have access.
Edit: I’m not even sure what on the controller uses Java. :shrug: Points should still be valid.
1
u/mmcgrath 5m ago
> You have a bad actor on your internal network. You have larger problems than a compromised controller if this is the case
Its worth reminding everyone that if you work from home, and have a corporate standard build of some kind. You might have more users on your home network than you think...
3
u/planedrop 10h ago
You should never allow access to the Unifi controller GUI from any untrusted devices, yet alone networks. Guest networks, normal user endpoint networks, the public internet, etc... should not have access to poke at the GUI at all, this is pretty basic security best practice.
1
7
u/TannerHill 15h ago
There is a fix already but it’s in Release Candidate for both Unifi OS Server and the Cloud Gateway lineups. Sadly I didn’t feel this was worth waiting for so I moved over ~300 firewalls out of the Official Release channel and into Release Candidate to get them patched ASAP