MC Technologies MC LR Router web interface configuration upload OS command injection vulnerability
An authenticated OS command injection vulnerability exists in the configuration upload functionality of the MC Technologies MC LR Router web interface. An attacker can send a specially crafted HTTP request to execute arbitrary commands with root privileges.
Originally disclosed on Cisco Talos
An OS command injection vulnerability exists in the web interface configuration upload functionality of MC Technologies MC LR Router 2.10.5. A specially crafted HTTP request can lead to arbitrary command 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 filename parameter from a multipart/form-data request is used without sanitisation in a shell command executed with root privileges.
Impact
An authenticated attacker can execute arbitrary OS commands with root privileges, leading to full compromise of the router.
What the attacker needed
Authenticated access to the web interface
How it was found
- Send a POST request to /cgi-bin/p/adm/cfg with Content-Type multipart/form-data.
- Include a filename parameter containing a command after a period.
- The router executes the command with root privileges.
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 uploading configuration files. The filename you provide is not properly checked, so an attacker who is logged in can sneak in extra commands that the router will run as the highest-level user. This lets them take full 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.