Skip to content
RCE Advisory Intermediate CVE-2019-5071CVE-2019-5072

Tenda AC9 /goform/WanParameterSetting Command Injection Vulnerability

The Tenda AC9 router's /goform/WanParameterSetting endpoint fails to sanitise the dns1 and dns2 POST parameters, allowing an authenticated local attacker to inject arbitrary OS commands. This lets the attacker execute commands as root, for example to obtain a reverse shell.

Amit N. Raut Follow

Originally disclosed on Cisco Talos

High 7.8 View original

An exploitable command injection vulnerability exists in the /goform/WanParameterSetting functionality of Tenda AC9 Router AC1200 Smart Dual-Band Gigabit WiFi Route (AC9V1.0 Firmware V15.03.05.16multiTRU). A specially crafted HTTP POST request can cause a command injection, resulting in code execution.

Amit N. Raut, 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 the dns1 and dns2 POST parameters are passed to a shell command without sanitisation, allowing command injection.

Impact

An authenticated local attacker could execute arbitrary commands as root on the router, potentially leading to a reverse shell.

What the attacker needed

Local network access to the router; valid authenticated session

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.

A router's web interface takes input from a form and passes it to the underlying operating system without checking it. An attacker who is already logged in can add extra system commands to a field like a DNS server address, and the router runs them with full administrator rights.

What is RCE?

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

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.