| Title | Tenda AC5 V03.03.14.11_multi_TDE01 Cross-Site Request Forgery |
|---|
| Description | The Tenda AC5 V3.0 web interface (firmware V03.03.14.11) does not implement CSRF tokens on any state-changing endpoint, including the firmware upgrade endpoint at /cgi-bin/upgrade. The session cookie (ecos_pw) is set without a SameSite attribute.
An attacker-hosted web page, when opened by a browser on the LAN that has an active admin session with the router, can silently flash arbitrary firmware to the device using a cross-origin fetch request with mode "no-cors" and credentials "include". The request carries the victim's session cookie. No password knowledge is required.
This was verified on live hardware. An HTML page hosted on an unrelated origin (localhost) was opened in a browser tab where the victim was logged into the router admin panel. The page dispatched a multipart POST to the router's /cgi-bin/upgrade endpoint with an embedded firmware image. The router accepted the upload (errCode 100), wrote the image to SPI flash, and rebooted. The full flash and reboot sequence was captured on the router serial console (39 module-restart log lines). The demonstration was performed twice with consistent results.
Combined with the absence of firmware signature verification on this device (the upgrade endpoint validates only CRC32), this vulnerability allows a remote attacker to achieve persistent code execution on the router by having the victim simply view a web page while logged into the router admin panel.
The session cookie has a sliding expiration of approximately 45 seconds, which is refreshed by any activity from the admin panel. A user with the admin dashboard open in any tab maintains a valid session.
Affected endpoint: POST /cgi-bin/upgrade
Parameters: multipart form with field "upgradeFile" containing the firmware binary
Prerequisites: Victim has an active admin session and opens an attacker-controlled web page
Impact: Persistent remote code execution on the router
Vendor notified via email on 2026-11-13. |
|---|
| User | deepakraj (UID 102970) |
|---|
| Submission | 11/12/2026 22:41 (24 days ago) |
|---|
| Moderation | 12/06/2026 18:58 (24 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 450849 [Tenda AC5 03.03.14.11 cross-site request forgery] |
|---|
| Points | 17 |
|---|