Skip to content
RCE Advisory Advanced CVE-2024-39370

Wavlink AC3000 adm.cgi set_MeshAp() arbitrary code execution vulnerability

A stack buffer overflow exists in the set_MeshAp function of the adm.cgi binary on Wavlink AC3000 routers. An authenticated attacker can send a crafted HTTP request with an overly long wlan_ssid2 parameter to overwrite the return address and execute arbitrary code.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

An arbitrary code execution vulnerability exists in the adm.cgi setMeshAp() functionality of Wavlink AC3000 M33A8.V5030.210505. A specially crafted HTTP request can lead to arbitrary code execution.

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

Impact

An authenticated attacker could execute arbitrary code on the router, potentially taking full control of the device.

What the attacker needed

Network access to the device; valid session cookie (authenticated)

The fix

The vendor has discontinued the product but is working on patches; the vulnerability should be fixed by adding a length check before copying the input.

How it was found

  1. Log in to the router's web interface to obtain a valid session cookie.
  2. Send an HTTP POST request to adm.cgi with page=wzdMeshAp and a wlan_ssid2 parameter longer than 0x98 bytes.
  3. The oversized input overwrites the stack return address, leading to code execution.

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 runs a small web server that lets administrators change settings. One setting, the Wi-Fi network name, is copied into a fixed-size memory area without checking its length. By sending a very long name, an attacker can overflow that area and take control of the router's processor.

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.