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

Wavlink AC3000 usbip.cgi set_info() buffer overflow vulnerability

A stack-based buffer overflow exists in the set_info() function of the usbip.cgi binary on the Wavlink AC3000 router. An authenticated attacker can send a crafted HTTP request with an overly long SSID parameter to overwrite the return address and potentially execute arbitrary code.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A buffer overflow vulnerability exists in the usbip.cgi setinfo() functionality of Wavlink AC3000 M33A8.V5030.210505. A specially crafted HTTP request can lead to stack-based buffer overflow.

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 set_info() function uses sprintf to copy the user-supplied SSID into fixed-size stack buffers without any length validation.

Impact

An attacker could overwrite the return address and execute arbitrary code, potentially leading to full compromise of the device.

What the attacker needed

Valid session cookie (authenticated user); network access to the device

The fix

The vendor is working on patches, but no fix has been released yet.

How it was found

  1. Log in to the router to obtain a valid session cookie.
  2. Send an HTTP POST request to usbip.cgi with page=admin or page=adminM68PD.
  3. Include an SSID parameter with a long string to overflow the stack buffer.

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 set the Wi-Fi name (SSID). The program that handles this setting copies the name into a fixed-size memory area without checking if the name is too long. If you give it a very long name, it spills over into other memory and can crash the program or let an attacker run their own code.

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.