Skip to content
RCE Advisory Intermediate CVE-2023-47617

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

A command injection vulnerability exists in the uhttpd web interface of the TP-Link ER7206 router when configuring a web group member. An authenticated attacker can send a crafted HTTP request to execute arbitrary commands as root.

the Vulnerability Discovery Follow

Originally disclosed on Cisco Talos

High 7.2 View original

A post authentication command injection vulnerability exists when configuring the web group member 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 member parameter of the web group member is used as an argument to a shell command without any sanitization.

Impact

An authenticated attacker with administrative access could execute arbitrary commands as root, gaining unrestricted shell access to the device.

What the attacker needed

Administrative access to the router

The fix

The vendor released a new firmware that fixes the vulnerability.

How it was found

  1. Log in to the router's web interface.
  2. Navigate to Behavior Control -> Web Filtering -> Web group.
  3. Add a new web group member, including shell metacharacters in the members parameter.
  4. Submit the form, which sends a POST request to /cgi-bin/luci/;stok=.../admin/websort?form=websort_list.
  5. The injected commands are executed by the router.

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 where you can set up groups of websites to filter. When you add a member to a group, the router runs a system command using the name you typed. Because it doesn't check what you type, an attacker who is already logged in can sneak in extra commands that the router will run with 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.

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.