Skip to content
Memory corruption Advisory Advanced CVE-2024-39357

Wavlink AC3000 wireless.cgi SetName() buffer overflow vulnerability

A stack-based buffer overflow in the SetName() function of wireless.cgi on the Wavlink AC3000 router allows an authenticated attacker to send a crafted HTTP request with an overly long NewName parameter, overwriting the return address and potentially achieving arbitrary command execution.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A stack-based buffer overflow vulnerability exists in the wireless.cgi SetName() functionality of Wavlink AC3000 M33A8.V5030.210505. A specially crafted HTTP request can lead to arbitrary command 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 commands on the router, potentially taking full control of the device.

What the attacker needed

Authenticated access to the router's web interface

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 wireless.cgi with page=SetName and a NewName parameter longer than 0x58 bytes.
  3. The SetName function copies the NewName value into a stack buffer without length checking, overwriting the return address.
  4. When the function returns, execution jumps to the attacker-controlled 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 has a web interface where you can change settings. One setting, the Wi-Fi network name, is not checked for length before being copied into a small memory area. By sending a very long name, an attacker can overwrite important data that controls what the program does next, potentially letting them run their own commands on the router.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.