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

Wavlink AC3000 internet.cgi set_add_routing() buffer overflow vulnerability

A buffer overflow exists in the set_add_routing function of the internet.cgi binary on the Wavlink AC3000 router. An authenticated attacker can send a crafted HTTP request with an overly long 'dest' parameter to overflow a stack buffer and potentially execute arbitrary code.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A buffer overflow vulnerability exists in the internet.cgi setaddrouting() 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 function copies user-supplied input into a fixed-size stack buffer using strcat without checking the length, leading to a stack-based buffer overflow.

Impact

An authenticated attacker could achieve arbitrary code execution on the device, potentially leading to full compromise.

What the attacker needed

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

The fix

The vendor has discontinued the product but is working on patches; the report does not confirm a fix.

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 internet.cgi with page=addrouting and a dest parameter containing a long string.
  3. The dest value is copied into a stack buffer without bounds checking, overflowing it and overwriting the return address.

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 report describes a classic buffer overflow in a router's web interface. When a user sends a request with a very long 'dest' value, the program copies it into a fixed-size memory area without checking length, causing data to spill over and overwrite important control information. An attacker who is already logged in could exploit this to run their own code on the device.

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.