Totolink X2000R boa formMapDelDevice macstr OS command injection vulnerability
The router's web interface passes the user-supplied macstr parameter into a shell command without sanitisation, allowing an authenticated attacker to run arbitrary operating system commands on the device.
Originally disclosed on Cisco Talos
A OS command injection vulnerability exists in the boa formMapDelDevice macstr 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 operating system commands on the router, 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 formMapDelDevice page with macstr and clientoff parameters.
- The request reaches the map_del_device binary, which copies macstr and builds a shell command with it.
- The command is executed by the system call, running any injected operating system commands.
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.
This router has a web page for managing devices. When you submit a form, one of the values you type is put directly into a command that the router runs on its own operating system. Because special characters in that value are not cleaned, someone who can log in can add extra commands and make the router run them.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.