Skip to content
RCE Advisory Intermediate CVE-2021-21888

Lantronix PremierWave 2050 Web Manager SslGenerateCertificate OS command injection vulnerability

The SSL certificate generation feature in the Lantronix PremierWave 2050 Web Manager builds an operating system command from unsanitised HTTP POST parameters. An authenticated attacker could inject shell metacharacters into fields such as state or locality to execute arbitrary commands as root.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

An OS command injection vulnerability exists in the Web Manager SslGenerateCertificate functionality of Lantronix PremierWave 2050 8.9.0.0R4 (in QEMU). 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 concatenates user-supplied POST parameters into a shell command string without sanitisation, then executes it via a system call.

Impact

An authenticated attacker with SSL authorisation could execute arbitrary commands as root on the device.

What the attacker needed

Authenticated access; SSL authorisation

How it was found

  1. Authenticate to the Web Manager with an account that has SSL authorisation.
  2. Send a POST request to the certificate generation endpoint with the ajax parameter set to SslGenerateCertificate and include the required fields.
  3. Insert shell metacharacters into one of the unsanitised fields, such as the state parameter, to append an arbitrary command.
  4. The device executes the resulting 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.

The device's web page for creating SSL certificates takes text you type and passes it directly to a command-line program without cleaning it. By adding special shell characters, an attacker can make the device run extra commands of their choosing, with the highest level of permission.

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.