Totolink X2000R boa formIpv6Setup pppoe Stack-Based Buffer Overflow Vulnerabilities
Multiple stack-based buffer overflows exist in the boa web server's handling of the pppoe_dns1 and pppoe_dns2 HTTP POST parameters, which are copied to the stack without bounds checks. An authenticated attacker can send a crafted HTTP request to achieve arbitrary code execution.
Originally disclosed on Cisco Talos
Multiple exploitable stack-based buffer overflow vulnerabilities exist in the boa formWsc peerRptPin 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 boa web server copies the pppoe_dns1 and pppoe_dns2 HTTP POST parameters directly onto the stack without any length checks or restrictions.
Impact
An authenticated attacker could achieve arbitrary code execution on the router, potentially leading to full compromise of the device.
What the attacker needed
Authenticated HTTP access to the router
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 space than it can hold, overwriting nearby memory. Here, the router's web server takes values from a form and copies them onto the stack without checking length, so an attacker who can log in can send a very long value and potentially 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.