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.
Originally disclosed on Cisco Talos
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.
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
- Authenticate to the Web Manager with an account that has filesystem permissions.
- 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.
- 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.