Submit #1093681: Tenda AC5 V03.03.14.11_multi_TDE01 Download of Code Without Integrity Checkinfo

TitleTenda AC5 V03.03.14.11_multi_TDE01 Download of Code Without Integrity Check
DescriptionThe firmware upgrade endpoint at /cgi-bin/upgrade on the Tenda AC5 V3.0 (firmware V03.03.14.11) validates uploaded firmware images using only a CRC32 checksum. There is no cryptographic signature verification of any kind. The CRC32 algorithm was reverse-engineered from the firmware binary. The check computes zlib.crc32(image[12:]) XOR 0xFFFFFFFF and compares it against a 32-bit value stored at offset 8 of the uploaded image. This is a data integrity check, not an authenticity check. Any attacker who knows this algorithm can produce a modified firmware image that passes validation. This was verified on live hardware. A stock firmware image was uploaded wirelessly via a scripted multipart POST request, and the router accepted it (errCode 100), wrote it to SPI flash, and rebooted on the new image. A firmware builder script was developed that takes the stock firmware, patches the decompressed LZMA payload (modifying the version string and web UI HTML), recompresses with matching LZMA parameters, fixes the CRC32, and produces a valid image at the exact stock size. The upgrade endpoint accepted this custom-built image with errCode 100. Note: while the upgrade endpoint accepts the modified image, the boot ROM performs an additional validation at startup that rejected the recompressed LZMA stream. This boot-level check appears to require the vendor signing key. However, the endpoint itself performs no signature validation, and images that pass the CRC32 check are written to flash. Affected endpoint: POST /cgi-bin/upgrade Validation: CRC32 only (zlib.crc32(data[12:]) ^ 0xFFFFFFFF stored at offset 8) Prerequisites: Authenticated session (or via CSRF) Impact: Arbitrary firmware accepted and written to flash Vendor notified via email on 2026-11-13.
User
 deepakraj (UID 102970)
Submission11/12/2026 22:42 (24 days ago)
Moderation12/06/2026 18:58 (24 days later)
StatusAccepted
VulDB entry450850 [Tenda AC5 03.03.14.11 Firmware Upgrade /cgi-bin/upgrade code download]
Points17

Want to stay up to date on a daily basis?

Enable the mail alert feature now!