support.mikro.strouter help over vpn
since 2014 Contact us now

Router vulnerability note - Ubiquiti

Ubiquiti U6-LR and U7-Pro: a root password in /etc/shadow, and a vendor who disagrees

What happened

Two reports the same day, two access points, one finding: the firmware image contains a /etc/shadow entry that lets a caller log in as root, and the entry survives until somebody sets a real password. Scored 9.8 on the U6-LR and 7.5 on the U7-Pro. Ubiquiti's response, quoted in the advisory, is that the hardcoded password belongs to the pre-adoption state: the device is meant to have a new one before anyone puts it on a network.

That is a reasonable product view and a bad operational one. In the wild, the window between unboxing and adoption is not minutes but months — an access point installed by a contractor who never handed the controller credentials to anyone, a unit that got adopted and then re-adopted, a site where the shadow entry was inherited from a firmware update. If you own more than a handful of these, the useful answer is not "is it a vulnerability" but "do I know the password on every unit", and for most of our customers the honest reply is no.

Who is affected

U6-LR 6.6.65 and U7-Pro 7.0.35 as examined; assume the pattern applies across the U-series until you have checked.

Check it yourself

Which units still have the factory root password?

$ ssh ubnt@192.168.100.7
U6-LR (U6-LR) Ubiquiti Networks, inc.
$ cat /etc/shadow | head -2
$ sysinfo-model
U6-LR
# in the UniFi console: Devices > [AP] > Settings > Manage > Credentials

Do this

  • Set device credentials after adoption, and use a password that is not on the installer's sticker.
  • Check whether SSH/Telnet is reachable on the AP's management network at all.
  • Keep the access points off the WAN — the risk here is the office guest VLAN, not the internet.
  • Add the access points to your inventory with a firmware version next to each; that column is how this stops being a surprise.

How we handle it

On the monitoring plan we look at the devices behind the gateway too, so the U6-LRs at a site tell us what they are running. If you want a one-off, the audit includes an access-point inventory and costs less than one unplanned visit.

Sources

Not your thing? We can run these checks for you over an OpenVPN tunnel: €45 fix visit, or just mail us.