Skip to content
RCE Advisory Intermediate CVE-2026-40627

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.

Lilith Wyatt Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

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.

Lilith Wyatt, on Cisco Talos

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

  1. Log in to the router's web interface via the login page.
  2. Send an HTTP POST request to the formWsc page with parameters that avoid setting a new pin.
  3. Include a targetAPSsid value shorter than 0x1d characters containing a subshell command.
  4. 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.

More by Lilith Wyatt

View all

28 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.