Skip to content
Path traversal Advisory Intermediate CVE-2021-21894CVE-2021-21895

Lantronix PremierWave 2050 Web Manager FsTFtp directory traversal vulnerability

The Web Manager's TFTP file transfer feature fails to sanitise the 'cwd' parameter, allowing path traversal. An authenticated user with filesystem privilege can read or overwrite arbitrary files on the device.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A directory traversal vulnerability exists in the Web Manager FsTFtp functionality of Lantronix PremierWave 2050 8.9.0.0R4 (in QEMU). A specially crafted HTTP request can lead to arbitrary file overwrite and arbitrary file disclosure.

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 sanitises some but not all user-controlled parameters, and the 'cwd' parameter is used to build a file path without removing path traversal sequences.

Impact

An authenticated user with filesystem privilege could read sensitive files or overwrite critical files, potentially leading to further compromise.

What the attacker needed

Authenticated user with filesystem privilege; attacker-controlled TFTP server

How it was found

  1. Authenticate to the Web Manager with a user that has the filesystem privilege.
  2. Send an HTTP POST request to the root path with the FsTFtp action and a 'cwd' parameter containing '../etc'.
  3. For file disclosure, set 'cmd=put' and specify a local file such as 'shadow' to upload it to a remote TFTP server.
  4. For file overwrite, set 'cmd=get' and specify a local file such as 'shadow' to download it from a remote TFTP server, overwriting the existing file.

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 lets logged-in users move files to and from a folder using a file transfer service called TFTP. The folder path is taken from a request parameter, and the software does not check for '..' sequences that mean 'go up a folder'. By sending '..' in the path, a user can reach files outside the intended folder, such as the system password file.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

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.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.