Posted by gregsadetsky 10 hours ago
Thanks!
GL.iNet people: sorry to see the hack, this sucks for both of us :) But your communication was superb and I've heard of it from YOU, not from news.
https://forum.gl-inet.com/t/found-other-malware-while-lookin...
1. Click the cloud icon in the menu bar
2. Click the gear icon
3. Choose Disable
SSH into it and then confirm:
ps aux | grep '[g]l-cloud'
netstat -tnp | grep 28883
Caveat emptor. And look it up in the OpenWRT wiki first.
https://openwrt.org/toh/gl.inet/gl-mt6000
It comes with an OpenWRT fork preinstalled, and installing upstream OpenWRT was really easy. Best router I've ever had.
I do like the hardware though, so I just wipe them and flash stock openwrt immediately
Not really, it's about as close to OpenWrt as all other makers are using. Still just vendor SDKs as far as I know. Especially their Qualcomm based devices which are fairly transparently QCSDK based.
They do have a fairly decent stock image though, if one can ignore this particular security incident...
Like to do advanced config there's a "go to the LuCI console" button.
https://openwrt.org/toh/gl.inet/gl-mt6000
> The GL-MT6000 ships with a modified fork of OpenWrt.
I apologize for improperly generalizing to all GL.iNet devices, but still, highly recommended.
Its just openwrt with a different front end for the most part.
eeros don't run anything remotely resembling openwrt
For example, by default (in OpenWrt):
- The web UI serves plaintext HTTP and doesn't redirect to HTTPS, even though it generates a self-signed cert for 443 on first boot. [1]
- The router generates a persistent DUID from its LAN MAC and sends it to your ISP. [2][3]
- Userspace is FORTIFY_SOURCE=1 and PIE/ASLR are not enabled on all binaries. BusyBox (which runs the WAN DHCP and NTP clients) isn't built with PIE unless you set PKG_ASLR_PIE_ALL. [4]
There are other defaults and unneeded packages that can be changed or removed. I spent a lot of time tuning the configs and switching some daemons to Rust before ultimately deciding that a NixOS gateway + separate AP was more viable.
[1] https://github.com/openwrt/openwrt/blob/main/package/network...
[2] https://github.com/openwrt/openwrt/blob/main/package/base-fi...
[3] https://github.com/openwrt/openwrt/blob/main/package/network...
[4] https://github.com/openwrt/openwrt/blob/main/config/Config-b...
How much does that matter? I suppose it provides confidentiality in the face of a passive local attacker, but the moment they do an active MITM I don't think a self-signed cert will be very useful
> I spent a lot of time tuning the configs and switching some daemons to Rust before ultimately deciding that a NixOS gateway + separate AP was more viable.
On the same (tiny) hardware? Have you published it anywhere? (Or did you move to a "big" gateway with less-trusted APs?)
In my experience, it's TOFU (Trust On First Use): once you accept the self-signed certificate the first time, Firefox will store its hash and no longer warn you as long as the certificate doesn't change. An active MITM after that point should still warn about an untrusted certificate, since the certificate would no longer be the same as the stored exception.
(And the same would happen if you initially accepted the self-signed certificate while under an active MITM, and the attack later stops; the only way to avoid a warning would be to have the attack be running continuously since the first use.)
Nobody is expected to use HTTPS in a LAN. This isn't supposed to be exposed to the Internet.
Their OS is built on OpenWRT and includes luci and dropbear ssh. An old PC or laptop doesn’t fit in my pocket and doesn’t have DPI and VPNs with exclusions that auto update from a https url. An old PC or laptop doesn’t have a SIM slot and do auto failover when the WAN is down. An old PC or laptop doesn’t have a simple web interface for viewing the DHCP leases. An old PC or laptop can’t easily clone the MAC address of my phone when being an L3 repeater on a public hotspot.
I am a very happy gl.inet customer and have been for a long time. The people developing the firmware are people like us. This incident is unfortunate but ultimately not a big deal. Malware in your router doesn’t matter that much or connecting to airport or coffee shop wifi would be inherently risky and it is not. There’s already plenty of malware on your path to the internet two hops up inside your ISP, too.
Common advice is to keep all such interfaces (not just for Ubiquiti devices, for all such kit) on a separate network leg, and don't even allow connections from your local LAN, either physically separating them on their own switch or using vLANs. Use a VPN to access that network leg when required, remotely or locally.
As extra paranoia measures, I suggest having the VPN mediated by a device from another manufacturer (or something you have put together with a basic Linux or BSD box), then an exploit has to get into two different environments in order to affect you, and nesting VPNs (with different credentials, of course) for external access so you VPN to local then to the management vLAN/leg so there is no direct external route to your management interfaces. I don't go that far with my home setup, but my router doesn't answer to anything on the public interface, I need to VPN in to another box (a small VM on my “home lab” machine) to administrate it remotely if I ever need to (this does, of course, mean there are extra things that I have to be sure are kept running and survive power-outs properly, by being on the UPS for short problems and making sure they come back up in a sane state after a long problem).
But that's not the case for the KVMs, which is quite concerning...
I love my Flint 2, but flashing plain OpenWRT was the first thing I did.
Currently the GL-i.net MediaTek devices seem to decent upstream support; I've also seen somebody who appears to be working for them posting pull requests.
> But that's not the case for the KVMs
Oh.
... They also enshittified their cloud out of the box and started adding 'paid features' for the KVM folks, which immediately precluded me from using it in the first place. Tailscale support my beloved.
https://www.gl-inet.com/en-us/blogs/blog/glkvm-cloud-plans-e...
I patched it but I'm strongly considering going upstream with OpenWRT and switching Tailscale to Headscale right now.
When using headscale you are harder to discover. Even if a general headscale fault were to be found and usable.
Has anyone heard or seen anything regarding issues with the battery-powered travel routers?