Skip to content
RCE Advisory Intermediate CVE-2024-39608

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.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 10.0 View original

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.

Lilith >_>, on Cisco Talos

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

  1. Send an HTTP POST request to the upload.cgi endpoint with a multipart/form-data body containing a firmware file.
  2. The binary writes the uploaded data to /var/tmpFW.
  3. The binary validates the UBOOT magic bytes, header CRC, and data CRC.
  4. 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.

More by Lilith >_>

View all

148 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.