Skip to content
RCE Advisory Intermediate CVE-2023-47167

TP-Link ER7206 Omada Gigabit VPN Router uhttpd GRE command injection vulnerability

The router's web management service passes the GRE policy remote gateway field into a shell command without sanitisation, so shell metacharacters in that field run extra commands. An authenticated administrator could use this to gain an unrestricted root shell on the device.

the Vulnerability Discovery Follow

Originally disclosed on Cisco Talos

High 7.2 View original

A post authentication command injection vulnerability exists in the GRE policy functionality of Tp-Link ER7206 Omada Gigabit VPN Router 1.3.0 build 20230322 Rel.70591. A specially crafted HTTP request can lead to arbitrary command injection.

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

The remote_gateway parameter is passed to a shell command without sanitisation, allowing shell metacharacters to alter the command.

Impact

An authenticated administrator could gain an unrestricted root shell on the device, though administrative access is required first.

What the attacker needed

Administrator login to the web interface; access to the GRE policy page

The fix

The vendor released new firmware that addresses the issue.

How it was found

  1. Log in to the router's web interface as an administrator.
  2. Open the GRE policy page under VPN, then GRE.
  3. Add a GRE policy and supply a remote gateway value containing shell metacharacters.
  4. Submit the form so the crafted request reaches the device and the injected command runs.

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.

This router has a web page for setting up GRE, a way of tunnelling traffic between networks. When you save a GRE policy, the router takes the 'remote gateway' value and puts it into a command it runs on its own operating system. Because it does not clean that value first, someone who can log in as admin can slip extra commands in and run them as the router's most powerful user.

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.