>>FIRST MISSION//LOGS//cybersecurity//one-account-was-enough-root-on-someone-elses-router.MD
[ + ] TARGET_LOCKED200 OK
NOV 26, 2026timer 3 MIN READSYS_TAG: cybersecurity STATUS: VERIFIED_WORKING

One Account Was Enough for Root on Someone Else's Router

GL.iNet's GoodCloud had a broken authorization check in its MQTT broker and the router client ran one cloud field through a shell as root. Together, any GoodCloud account was enough to reach other people's routers. The cloud fix and the firmware fix are not the same fix.

ENGINE: KERNEL // STABLE
BASE_ARCH: x86_64
HOST: VASTORIGINS.COM
GPG: OKSIG_ID: 0x4EB27DB0

I have a rule about gear that phones home: if a box is reachable through the vendor’s cloud, I want to know what that channel is allowed to do. GL.iNet answered that about its own hardware last week. On November 20 it found that someone had used a flaw in GoodCloud, its remote management service, to install malware on a subset of its routers and KVM devices. Owners went looking and found root shells on their own units.

This is not a bad password story. It is two broken assumptions that composed into remote root: a broker that did not keep one customer’s messages away from another customer’s device, and a client that ran a value from that message through a shell as root without checking it. One lived in the cloud. The other shipped in released firmware for 715 days.

🔍 Two Bugs, One Trust Boundary

GL.iNet has published the mechanism. GoodCloud’s device messaging runs on EMQX, an MQTT broker, and the deployment had a configuration error in message authorization. In the vendor’s write-up, an attacker who knows another device’s MAC address can publish forged MQTT messages to the topics that device subscribes to. It needs control of at least one GL device on GoodCloud, and MAC addresses can be enumerated in bulk. Affected version: GoodCloud v3.19.13. Fixed in v3.19.14. The tenant boundary was the topic name, and the topic name was a MAC address.

On the device, the sink is a handler, commands.astrowarp.virtual_ip_info, in the cloud client package gl-sdk4-cloud. It takes mac, virtualIp and ip from the message and formats two of them into this, then passes it to os.execute:

iptables -t nat -A %s -d %s -j DNAT --to-destination %s

Neither value is checked or quoted, and the handler never asks whether AstroWarp, the SD-WAN feature it belongs to, is enabled. Set virtualIp to 127.0.0.1 and ip to 127.0.0.1;<any command> & and the rule still parses while the command runs as root. The rule that lands in SDWAN_IP_MAPPING maps 127.0.0.1 to 127.0.0.1, which is the format string’s output and good for nothing except as the wrapper the payload arrived in.

The broker decides who may send a management message to which device, and the client trusts what arrives. Break either one and you have a bypass. Both were broken, and the device half had been sitting there since December 2024.

🧨 What It Looked Like on the Wire

RemoteToHome Consulting, a GL.iNet services partner, published the forensics. Of 199 routers it has reached, 166 show the November 20 attack, an older backdoor, or both. Twenty four had a live root shell: GL-AXT1800 on 4.8.2 and 4.8.3, and GL-MT6000 on 4.9.1. Forty nine ran a separate backdoor with file dates from September 2025 to May 2026. On 93 more, an attacker command had run as root.

The shells started between 20:06 and 21:40 UTC on November 20 and dialed 170.39.226.219. The payload makes a pipe at /tmp/f, joins /bin/sh -i to nc through it, and restarts three seconds after the connection drops; unrebooted routers were still retrying on November 22. The address was a rented server, and its provider suspended it on November 21 after RemoteToHome reported it.

The most common message was not a shell. It was 401 bytes, recovered from client memory on 98 routers across eleven models, and it ran one command: list /etc/config/.gl and /etc/glinet/.cache, folders belonging to a KVM implant, and pipe the answer to nc 170.39.226.219 50000. It installs nothing. Someone was checking which routers also carried the KVM side. One router later got a command through the same channel calling http://66.245.219.252:8899/wake?m=KK_<id>, the KVM implant’s own check-in URL.

The installer, ni.sh, recognizes GL.iNet models, pulls gl-helper and gb from hardcoded servers, persists through startup scripts and scheduled tasks, adds SSH keys, and replaces netstat to hide connections to 66.245.219.252. It disguises its process as crond -i /tmp/.log, the one indicator GL.iNet first published. RemoteToHome has not found that process on a single router, including all 24 with live shells.

Nobody has attributed this. The installer carries Chinese-language developer comments, which are a language, not an attribution.

🕰️ 715 Days in Released Firmware

RemoteToHome pulled the package from GL.iNet’s release images, verified each against its published SHA-256, and walked the handler back. GL-MT3000 4.6.9, released October 30 2024, does not have it. GL-MT3000 4.7.0, released December 5 2024, does. From there to November 20 2026 is 715 days. It follows the package build, not the firmware number: GL-AXT1800 4.6.11 came later and has no handler.

It also runs whether or not AstroWarp is on. RemoteToHome recorded that setting on 193 routers, including every one that had been called. None had it enabled. The switch a cautious owner would flip did nothing, because the parser is compiled into the client, not into the feature.

The client ships as Lua bytecode with no source in GL.iNet’s public repositories. A 27 GB build kit, the model images, the feeds and the GitHub organization, searched by name and by content, hold no gl-sdk4-cloud source and no virtual_ip_info outside the compiled module. The bytecode only lists in stock luac after restoring a header block that GL.iNet’s own architecture-independence patch removes, which is a portability fix, not obfuscation. Nobody outside could review this code because it shipped as a blob, not because it was hidden.

🩹 Two Fixes That Are Not the Same Fix

GL.iNet closed the cloud hole on discovery day, in GoodCloud v3.19.14. That stops new infections and does nothing for devices already reached, which the vendor now says plainly.

Firmware is separate: minimum versions for 18 router models and 7 KVM models, including 4.11.1 for the GL-MT3000, GL-MT6000 and GL-MG1300, 4.8.4 for the GL-AXT1800 and GL-AX1800, 4.7.14 for the GL-MT2500, and 1.10.3 for the RM1 and RM10. In the 4.11.1 build the handler gained a validation table and a mpifd/parameter_validator.lua module that checks IPv4 fields before any command is built, and returns if the validator is missing. It fails closed.

The cleanup is the weaker half: a 46-line script at /etc/uci-defaults/00-system-check, byte for byte identical across the seventeen builds RemoteToHome unpacked. It restores /etc/init.d/urandom_seed and, if /etc/config/.gl exists, removes that folder plus the named rc.local and scheduled-task lines. It does not remove /bin/ulogd, /usr/bin/monitord, the keep-list line, or the older backdoor’s second stage.

They tested it with stand-ins on a GL-MT3000 and upgraded with settings kept. The start-up routes the script names were removed and did not run. A different rc.local line survived and ran at boot. A different scheduled-task line survived and ran. A script in /etc/udhcpc.user.d survived and ran. On an RM1, upgrading to 1.10.3 with the configuration kept also kept an added boot script and an added SSH key, and the script ran. A second round on November 24 removes more, still by name, still untested on hardware. Enumerating what someone else left behind is incident response, not a security property.

There is still no CVE. GL.iNet published four reports on November 24 under internal identifiers like vdb-submit-1112985, and its notice says outright that those are not CVE numbers. NVD this morning: zero for AstroWarp, zero for EMQX plus GL.iNet, and the only GoodCloud hits are from 2022. Every CVE-driven scanner will keep calling this clean.

One more thing was already written down. A report committed to the vendor’s repository on October 15 describes improper access control in glkvm-cloud: control routes like /cmd/:devid resolve the target from a client-supplied group and device id without checking the caller’s group, /api/script-info hands out the device connection token, and the auth middleware fails open when the password config is empty. Different service, same shape, published a month before the incident. GL.iNet has not said it played a role here.

🧾 If You Own One

Look before you reboot. The pipe /tmp/f and the SDWAN_IP_MAPPING rule vanish on restart, and so does a live shell. /etc/mp_ip_mapping_info survives, but it shows only that the handler ran. The device log in your GoodCloud account keeps the replies to those messages with the id 1.

Then turn the channel off, once you have another way in:

/etc/init.d/gl-cloud stop
uci set gl-cloud.@cloud[0].enable='0'
uci commit gl-cloud
/etc/init.d/gl-cloud disable

Revoke at the other end. Remove the WireGuard peer on the server, since a profile deleted from the router still works from anywhere. Revoke OpenVPN client certificates. Pull the router’s SSH key from every authorized_keys that trusted it. Remove the node in Tailscale or ZeroTier. Reinstall without keeping settings, in one step, because a reset followed by an upgrade lets the old half boot and write into the new one.

🧠 Final Thoughts

The lesson is not “GL.iNet bad.” It is that a router with vendor cloud management enabled has a second root account, authenticated by a broker you do not operate, delivering to a client you cannot read. You can audit your LAN. You cannot audit that channel, and you cannot patch the cloud side of it.

So the question about any remote management feature is not whether it is encrypted. It is who can send a message to your device, and what your device may do with one. If the answer is “the vendor’s brokers decide, and the device trusts them,” then one misconfiguration upstream is root in your network, and recovery is a list of file names someone else chose.

I still like these routers. I run mine with the cloud switch off and a tunnel I terminate myself.

Thanks for reading.

[ SIGNATURE VERIFIED // GPG 0x4EB27DB0 // PROVENANCE SECURE ]
➔ RETURN TO LOGS