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.
Originally disclosed on Cisco Talos
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.
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
- Authenticate to the Web Manager with an account that has SSL authorisation.
- Send a POST request to the certificate generation endpoint with the ajax parameter set to SslGenerateCertificate and include the required fields.
- Insert shell metacharacters into one of the unsanitised fields, such as the state parameter, to append an arbitrary command.
- 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.