Skip to content
RCE Advisory Intermediate CVE-2024-21786

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.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

High 7.2 View original

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.

Matt Wiseman, 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

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

  1. Send a POST request to /cgi-bin/p/adm/cfg with Content-Type multipart/form-data.
  2. Include a filename parameter containing a command after a period.
  3. 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.

More by Matt Wiseman

View all

73 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.