Wavlink AC3000 fw_check.sh Firmware Upload vulnerability
The Wavlink AC3000 router's firmware update script fetches update information over unencrypted HTTP and then flashes firmware without verifying its authenticity beyond a hash provided in the same response. An attacker who can intercept the HTTP traffic could supply a malicious firmware file and have it installed on the device.
Originally disclosed on Cisco Talos
A firmware update vulnerability exists in the fwcheck.sh 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 firmware update process uses unencrypted HTTP to fetch update metadata and then trusts the hash contained in that same metadata to validate the firmware, allowing a man-in-the-middle attacker to supply both the hash and the malicious firmware.
Impact
An attacker who can intercept the HTTP traffic could flash arbitrary firmware onto the device, potentially gaining full control.
What the attacker needed
Man-in-the-middle position on router's HTTP traffic
The fix
The update process should use HTTPS and verify firmware signatures with a trusted key rather than relying on a hash from the same unauthenticated response.
How it was found
- The router's scheduled script fetches update information from two HTTP URLs.
- An attacker intercepts the HTTP request and returns a crafted response containing a malicious firmware URL and matching hash.
- The script downloads the firmware from the attacker-supplied URL.
- The script verifies the hash against the value from the same response and then flashes the firmware.
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.
The router regularly checks for new firmware by downloading a small file from a website. That check uses an insecure connection, so someone who can intercept the traffic could replace the file with their own. The router then installs the attacker's firmware without any further checks, giving the attacker control over 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.