Skip to content
Leaked secrets Write-up Advanced

A Route to Root in a 4G Industrial Router

An undocumented superuser account named usr with UID 0 existed on the router, and its credentials could be recovered from a vendor helper utility shipped on the device. An attacker who could reach the exposed SSH or Telnet management interfaces could use those credentials to gain remote administrative access.

Sam C Follow

Published on tantosec.com

This post details my analysis of a router that I purchased from an Australian second-hand retailer.

Sam C, on tantosec.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the vendor shipped a helper utility that runs commands as the superuser account and embeds or exposes that account's password, alongside an undocumented UID 0 account.

Impact

If management interfaces such as HTTP, SSH or Telnet are exposed to untrusted networks, an adversary could obtain direct administrative access to the device.

What the attacker needed

Network access to SSH or Telnet; management interface exposed to attacker

The fix

The vendor was contacted but did not respond, so the issue should be fixed by removing the undocumented account and not embedding credentials in shipped utilities; owners should restrict remote management access.

How it was found

  1. Log in to the device over SSH or Telnet using the known low-privilege root account.
  2. Notice that the root account has UID 2, not 0, and that /etc/passwd lists a usr account as the real superuser.
  3. Find the vendor-specific usr_root utility in /bin and run it with --help to see the commands it supports.
  4. Extract the device file system to a workstation and analyse the usr_root binary in a decompiler.
  5. Observe that the utility builds an su invocation for the usr user, implying the password is embedded or retrievable.
  6. Recover the credentials and confirm they allow remote SSH access as the superuser.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

On Linux, the number zero as a user ID means the all-powerful administrator account, whatever the account is called. This router had a hidden administrator account, and a small program on the device contained or revealed its password. Anyone who could reach the router's remote login services could then log in as that administrator.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.