Skip to content
RCE Advisory Intermediate CVE-2021-21881

Lantronix PremierWave 2050 Web Manager Wireless Network Scanner OS command injection vulnerability

An OS command injection vulnerability exists in the Web Manager Wireless Network Scanner of Lantronix PremierWave 2050. An authenticated attacker can send a crafted HTTP request with a malicious 'ssid' parameter to execute arbitrary commands with root privileges.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

Critical 9.9 View original

An OS command injection vulnerability exists in the Web Manager Wireless Network Scanner functionality of Lantronix PremierWave 2050 8.9.0.0R4. A specially-crafted HTTP request can lead to 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 builds a shell command using an unsanitised HTTP parameter ('ssid') and executes it via a system call, allowing command injection.

Impact

An authenticated attacker can execute arbitrary commands with root privileges on the device, leading to full compromise.

What the attacker needed

Authenticated access to Web Manager

How it was found

  1. Authenticate to the Web Manager interface.
  2. Send a POST request to the root path with the 'ajax' parameter set to 'WLANScanSSID' and a malicious 'ssid' value containing shell metacharacters.
  3. The device executes the injected 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 device has a web interface that lets logged-in users scan for Wi-Fi networks. The part that searches for a network by name takes the name you type and puts it directly into a system command without cleaning it. By typing special characters, an attacker can make the device run their own commands as the most powerful user (root).

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.