Skip to content
RCE Write-up Advanced

FDEU-CVE-2019-10222

Telia's customer routers and set-top boxes contain a hidden SSH management backdoor with universal credentials, and the web self-service portal connects to these devices without verifying the SSH server's public key, allowing a man-in-the-middle to capture the admin password. An attacker could then log in to routers, escalate to root, and potentially control many devices.

full-disclosure.eu

Published on full-disclosure.eu

Multiple vulnerabilities could allow running arbitrary code on an intranet server and gain root access on all the customers' routers

The author, on full-disclosure.eu

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 SSH client in Telia's backend does not verify the remote server's public key, and the routers use a universal hardcoded admin password.

Impact

An attacker could capture the universal router admin password, log in to many routers, escalate to root, and potentially build a botnet; the report also found a denial-of-service condition and unconfirmed RCE potential.

What the attacker needed

Attacker can intercept network traffic; victim uses Telia router; victim uses Savitarna portal

The fix

The report states that the vulnerable libssh2, missing public key check, and leaked password were not fixed at the time of disclosure.

How it was found

  1. Set up a malicious SSH server on port 8022 to impersonate a router.
  2. Wait for Telia's backend to connect to the malicious server when a user changes Wi-Fi settings.
  3. Capture the universal router credentials (username and password) sent by the backend.
  4. Use the captured credentials to log in to an ADB router's web interface and then locally via SSH.
  5. Exploit additional vulnerabilities in the router firmware to escalate to root.

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.

Many Telia routers have a secret remote login feature (a backdoor) that uses the same admin username and password on every device. The web portal that lets you change your Wi-Fi password connects to your router over SSH but does not check that it is talking to the real router, so an attacker on the network can pretend to be the router and steal the password. With that password, the attacker can log in to routers and take full control.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.