Skip to content
Memory corruption Advisory Advanced CVE-2024-39803CVE-2024-39801CVE-2024-39802

Wavlink AC3000 qos.cgi qos_settings() buffer overflow vulnerabilities

Multiple buffer overflow vulnerabilities exist in the qos.cgi qos_settings() functionality of Wavlink AC3000. An authenticated attacker can send a crafted HTTP request to overflow a stack buffer and potentially execute arbitrary code.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

Multiple buffer overflow vulnerabilities exist in the qos.cgi qossettings() 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 qos_settings function uses sprintf to copy user-supplied POST parameters into a fixed-size stack buffer without bounds checking.

Impact

An authenticated attacker could overflow the buffer and potentially execute arbitrary code on 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 qos.cgi with page=qos and a long value in qos_bandwidth, qos_dat, or sel_mode.
  3. The qos_settings function copies the input into a fixed-size stack buffer, causing a buffer overflow.

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.

A buffer overflow happens when a program copies more data into a fixed-size memory area than it can hold, causing the extra data to spill over and overwrite nearby memory. Here, the router's web interface takes user input from certain form fields and copies it into a small buffer without checking the length, so an attacker who is logged in can send a very long value and potentially take control of 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.