Totolink X2000R boa formWsc targetAPSsid OS command injection vulnerability
The router's web interface fails to neutralise subshell syntax in the targetAPSsid parameter, allowing an authenticated attacker to run arbitrary commands on the device.
Originally disclosed on Cisco Talos
A OS command injection vulnerability exists 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
Impact
An authenticated attacker could execute arbitrary code on the router, potentially leading to full compromise of the device.
What the attacker needed
Authenticated access to the web interface
How it was found
- Log in to the router's web interface via the login page.
- Send an HTTP POST request to the formWsc page with parameters that avoid setting a new pin.
- Include a targetAPSsid value shorter than 0x1d characters containing a subshell command.
- The router runs the injected command through system().
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 takes a Wi-Fi network name and passes it to a system command without properly blocking special characters. An attacker who is already logged in can include a command in that name, and the router will run it, giving them control of the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.