Skip to content
RCE Advisory Intermediate CVE-2024-21827

Tp-Link ER7206 Omada Gigabit VPN Router cli_server debug leftover debug code vulnerability

A hidden debug command in the router's CLI asks for a password derived from the device's LAN MAC address, and entering it correctly drops the user into a full Linux shell. An attacker who can log in to the CLI could therefore escalate from a limited command set to unrestricted root access.

the Vulnerability Discovery Follow

Originally disclosed on Cisco Talos

High 7.2 View original

A leftover debug code vulnerability exists in the cliserver debug functionality of Tp-Link ER7206 Omada Gigabit VPN Router 1.4.1 Build 20240117 Rel.57421. A specially crafted series of network requests can lead to arbitrary command execution.

the Vulnerability Discovery and Research team, on Cisco Talos

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a leftover debug command was left in the CLI server; it derives its password from the device's LAN MAC address, which is not a secret, and then spawns a root shell.

Impact

An attacker with valid admin credentials could gain a root Linux shell on the router, but only after Remote Assistance is enabled and they can reach the SSH service.

What the attacker needed

Admin credentials for the web portal; Remote Assistance enabled; network access to the SSH service

The fix

The vendor released a firmware update that removes or corrects the leftover debug functionality.

How it was found

  1. Enable Remote Assistance in the web portal so SSH access is possible.
  2. Log in to the router over SSH with the admin credentials.
  3. At the limited CLI prompt, enter the hidden debug command.
  4. Supply the password derived from the LAN MAC address.
  5. Receive a full Linux shell as 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 report has not been written yet. The Original tab links to the source.

The router has a small command-line interface for administrators, and it hides an extra command called debug. That command checks a password built from the router's own hardware address, and if you type it correctly you get a full Linux shell with root rights instead of the few safe commands. The mistake is that this leftover testing feature was never removed from the shipped firmware.

What is RCE?

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

More by the Vulnerability Discovery

View all

12 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

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.