Totolink X2000R boa Firmware Update Unsigned Firmware vulnerability
The Totolink X2000R router's firmware update process does not verify a cryptographic signature on uploaded firmware images. An authenticated attacker could upload a crafted firmware file that passes only magic-byte and checksum checks, allowing arbitrary unsigned firmware to be flashed to the device.
Originally disclosed on Cisco Talos
A Unsigned Firmware vulnerability exists in the boa Firmware Update functionality of X2000R (version(s): TOTOLINK-X2000R-Gh-V1.0.0-B20250421.1327). A specially crafted firmware binary can lead to arbitrary firmware update.
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 update handler validates magic bytes and a simple additive checksum but never verifies a cryptographic signature, so any file meeting those weak checks is accepted.
Impact
An authenticated attacker could flash arbitrary unsigned firmware to the device, potentially leading to full compromise, but the attacker must already have valid credentials.
What the attacker needed
Valid authentication to the web interface
How it was found
- Authenticate to the router's web interface via the login page.
- Send a crafted firmware file to the formUpload or formUploadFile endpoint.
- The handler locates the uploaded file in the request and processes it.
- The handler checks magic bytes and a simple checksum, then writes the firmware to flash.
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.
When you update a router's firmware, the router should check that the file really comes from the manufacturer and has not been tampered with. This router only checks a few simple things, like a label at the start and a basic checksum, but not a digital signature. That means someone who can log in to the router could install their own modified firmware.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.