Wavlink AC3000 login.cgi Unauthenticated Firmware Upload vulnerability
The upload.cgi binary on the Wavlink AC3000 router lacks authentication, allowing an unauthenticated attacker to upload a crafted firmware image. The firmware is written to flash and the device reboots, enabling arbitrary firmware installation.
Originally disclosed on Cisco Talos
A firmware update vulnerability exists in the login.cgi functionality of Wavlink AC3000 M33A8.V5030.210505. A specially crafted HTTP request 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 upload.cgi binary does not perform any authentication check before accepting and writing firmware data.
What the attacker needed
Network access to the device
The fix
The upload.cgi binary should require authentication before accepting firmware uploads.
How it was found
- Send an HTTP POST request to the upload.cgi endpoint with a multipart/form-data body containing a firmware file.
- The binary writes the uploaded data to /var/tmpFW.
- The binary validates the UBOOT magic bytes, header CRC, and data CRC.
- If validation passes, the binary writes the firmware to flash and reboots the device.
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 has a web page for uploading new firmware. Normally you must log in first, but the upload program does not check if you are logged in. Anyone on the network can send a specially crafted request with a firmware file, and the router will install it and restart.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.