Skip to content
RCE Advisory Intermediate CVE-2021-21872

Lantronix PremierWave 2050 Web Manager Diagnostics: Traceroute OS command injection vulnerability

The Web Manager Diagnostics Traceroute feature builds a shell command from an unvalidated HTTP parameter, allowing an authenticated user to run arbitrary commands as root. An attacker with valid credentials could execute commands on the device.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

Critical 9.9 View original

An OS command injection vulnerability exists in the Web Manager Diagnostics: Traceroute functionality of Lantronix PremierWave 2050 8.9.0.0R4. 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 application inserts the attacker-controlled 'protocol' parameter directly into a shell command string without validating it against the expected values.

Impact

An authenticated user could execute arbitrary commands with root privileges on the device.

What the attacker needed

Valid credentials for the web manager; network access to the device

How it was found

  1. Send an authenticated HTTP POST request to the device's web manager.
  2. Include the Traceroute action and a crafted protocol value containing shell metacharacters.
  3. The device builds and executes a traceroute command that includes the injected value, running the extra commands as root.

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.

The device takes a value from a web form and pastes it straight into a command it runs on the underlying operating system. Because special characters in that value are not cleaned, someone can add extra commands that the device then runs with full administrator rights.

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.