Wavlink AC3000 adm.cgi set_sys_adm() buffer overflow vulnerability
A buffer overflow in the set_sys_adm function of adm.cgi allows an authenticated attacker to send a crafted HTTP request that overflows a stack buffer, potentially leading to code execution.
Originally disclosed on Cisco Talos
A buffer overflow vulnerability exists in the adm.cgi setsysadm() functionality of Wavlink AC3000 M33A8.V5030.210505. A specially crafted HTTP request can lead to stack-based buffer overflow.
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_sys_adm function uses sprintf to copy the user-supplied new_pwd parameter into a fixed-size stack buffer without any length check.
What the attacker needed
Valid session cookie (authenticated)
How it was found
- Log in to the router's web interface to obtain a valid session cookie.
- Send an HTTP POST request to adm.cgi with page=sysAdm and a new_pwd parameter longer than 0x118 bytes.
- The oversized new_pwd overflows the stack buffer, overwriting the return address and causing a crash or 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 report describes a memory corruption bug in a router's web interface. When a logged-in user changes their password, the router copies the new password into a fixed-size memory area without checking its length. If the password is too long, it spills over and can crash the router 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.