Tenda AC6 V5.0 Firmware Signature Validation firmware update vulnerability
The firmware update validation on the Tenda AC6 router only checks a magic value, file size, and CRC, with no cryptographic signature. An attacker with web-portal credentials can flash arbitrary firmware, leading to persistent code execution.
Originally disclosed on Cisco Talos
A firmware update vulnerability exists in the Firmware Signature Validation functionality of Tenda AC6 V5.0 V02.03.01.110. A specially crafted malicious file can lead to arbitrary code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The firmware validation function only checks magic bytes, file size, and a CRC checksum, with no cryptographic signature verification.
Impact
An attacker with web-portal credentials can flash arbitrary firmware, resulting in arbitrary and persistent code execution.
What the attacker needed
Web-portal credentials
How it was found
- Log in to the router's web portal.
- Go to the Administration tab and choose to upgrade firmware from a local file.
- Upload a crafted firmware file that has the correct magic bytes, size, and CRC.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This router lets you update its firmware (the built-in software) by uploading a file. The router only checks that the file has a certain label, a plausible size, and a checksum (a simple error-detection code), but it never verifies that the file really comes from the manufacturer. So anyone who can log in to the router's admin page can upload their own modified firmware and take control of the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.