Skip to content
RCE Advisory Intermediate CVE-2021-21876CVE-2021-21877

Lantronix PremierWave 2050 Web Manager FsTFtp OS command injection vulnerabilities

The Web Manager's TFTP file transfer feature passes the 'host' HTTP parameter directly into a shell command without sanitisation, allowing an authenticated user to inject arbitrary OS commands. An attacker with valid credentials and filesystem permissions could execute commands as root.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

Multiple OS command injection vulnerabilities exists in the Web Manager FsTFtp functionality of Lantronix PremierWave 2050 8.9.0.0R4. Specially-crafted HTTP requests 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

Impact

An authenticated attacker with filesystem permissions could execute arbitrary commands with root privileges on the device.

What the attacker needed

Authenticated access; filesystem group permission

How it was found

  1. Authenticate to the Web Manager with an account that has filesystem permissions.
  2. Send a POST request to the root path with parameters ajax=FsTFtp, cmd=put (or get), and a host value containing shell metacharacters and a command.
  3. The device builds a tftp command including the unsanitised host value and executes it, running the injected command 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.

This device has a web page for transferring files using TFTP. The page takes a 'host' address from the user and builds a system command with it, but it does not check the address for special characters. Someone who can log in and has file permissions can put extra commands in that field, and the device will run them with the highest privileges.

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.