Totolink X2000R boa formFilter stack-based buffer overflow vulnerabilities
The boa web server on the Totolink X2000R router copies the vpnUser and vpnPassword POST parameters into fixed-size stack buffers without length checks. An authenticated attacker can send an oversized value to cause a stack buffer overflow and potentially execute arbitrary code.
Originally disclosed on Cisco Talos
Multiple exploitable stack-based buffer overflow vulnerabilities exist in the boa formFilter functionality of X2000R (version(s): TOTOLINK-X2000R-Gh-V1.0.0-B20250421.1327). A specially crafted HTTP request can lead to arbitrary code execution.
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 formFilter function uses strcpy to copy the vpnUser and vpnPassword POST parameters into fixed-size stack buffers without checking their length.
Impact
An authenticated attacker could achieve arbitrary code execution 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
- Authenticate to the router's web interface via the login page.
- Send an HTTP POST request to the formFilter page with a non-zero addFilterIP parameter.
- Include an oversized vpnUser or vpnPassword parameter 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.
A router's web admin page reads text you type into a form and stores it in a small fixed-size space in memory. If the text is longer than that space, it spills over and can overwrite the instructions the program is about to run. An attacker who can log in to the router can 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.