Back to Engineering Blog
Engineering Field Notes 3 min read

We Almost Reflashed a Router That Didn't Need It, Then Found a Blank Root Password

VLAN setup on an OpenWrt travel router looked like a missing kernel module, until we found the image used a different package manager and had 802.1Q built in. While reading logs for something else, we noticed a successful login with a blank root password.

Jason NevillBy , Houston, TX
#OpenWrt#VLAN#Security#Wi-Fi

Key Architectural Takeaways

  • Investigate why a plan failed before forcing it; the image used a newer package manager and already had VLAN support.
  • Read the logs you are not looking at: a successful root login with a blank password was in the output of an unrelated command.
  • Apply the fleet's existing rule to a device that has not caught up; do not treat it as a new decision.

The challenge

We configured a compact OpenWrt router as a dual-SSID access point: one network for trusted devices and one isolated network for a voice kiosk, each on its own VLAN. The plan was real 802.1Q tagging on the wired uplink, with the device handling DHCP and NAT for the moment.

The false alarm

Initial reconnaissance suggested VLAN support was missing. There was no 8021q module under /lib/modules, and opkg returned "not found". We began requesting a custom image from OpenWrt's firmware builder with kmod-8021q and opkg added. The request failed with "Impossible package selection: missing (kmod-8021q, opkg)", and instead of forcing it, we asked why.

The real story was twofold. This build (25.12.5) uses the newer `apk` package manager, a project-wide transition, not a fault in our image. And 802.1Q support is compiled into the kernel, not a loadable module. ip link add link eth1 name eth1.999 type vlan id 999 worked instantly. We cancelled the build request. No reflash was needed.

The design

  • VLAN sub-interfaces for each network on the uplink port, with the port's untagged management traffic unaffected.
  • A bridge per network, with VLAN ID in the third octet of the address.
  • Two firewall zones, each allowing traffic to the device and out to the internet via NAT, with no forwarding between the two networks and none to the wired management zone.
  • DHCP from dnsmasq on both networks. The radio is a single 2.4 GHz chip, so the two SSIDs share the same airtime. Both use WPA3-SAE with WPA2 fallback, with long random passphrases generated rather than typed.

The real find

While reading the log output of a wireless reload, one line stood out: Auth succeeded with blank password for 'root'. We checked rather than trusting one log line. Password authentication and root password authentication were both on, and the shadow file showed an empty root hash. Anyone able to reach the SSH daemon on any interface could log in as root with no credential. That was already true on the unrestricted wired zone, and the two wireless networks, brought up minutes earlier with open input policy, had just made the exposure worse.

It broke the fleet's standing rule that SSH is key-only everywhere. We treated it as applying an existing policy to a device that had not caught up, not as a new judgment call needing sign-off, and fixed it immediately by turning both password options off and committing the change.

What we did not verify

Configuration was confirmed live: both access points up with the right names and bridges holding the right addresses. We had not yet seen a real client join and browse, because no wireless client was available. We said so and listed it as the next check.

Takeaway

Do not force a fix for a problem you have not understood, and keep reading logs outside the immediate task. Both of today's lessons came from output we were not looking for.

Some of what's described here is a design that hasn't been fully tested yet; those parts say so in the text.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.