Totolink X2000R boa formIpv6Setup Static Network Configuration Stack-Based Buffer Overflow Vulnerabilities
Multiple stack-based buffer overflows exist in the boa web server's formIpv6Setup handler of the Totolink X2000R router, where HTTP POST parameters are copied without bounds checking into fixed-size stack buffers. An authenticated attacker can send a crafted request to overwrite the return address and 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
Likely the boa web server copies HTTP POST parameter values into fixed-size stack buffers using an unchecked string copy function, without validating the input length.
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 access to the web interface
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, so the extra data spills over and corrupts nearby memory. Here, the router's web server takes values from a form and copies them into small buffers on the stack without checking length, letting an attacker overwrite the return address and potentially run their own code. The attacker must already be logged in to the router's web interface to send the malicious request.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.