Skip to content
Path traversal Advisory Intermediate CVE-2021-21885

Lantronix PremierWave 2050 Web Manager FsMove directory traversal vulnerability

The Web Manager's FsMove function fails to sanitise all user-supplied path parameters, allowing an authenticated user with filesystem privileges to move arbitrary files into or out of the user directory. This enables reading sensitive files like /etc/shadow or overwriting them.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

High 7.2 View original

A directory traversal vulnerability exists in the Web Manager FsMove functionality of Lantronix PremierWave 2050 8.9.0.0R4. A specially crafted HTTP request can lead to local file inclusion.

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

Likely the application fails to sanitise the 'cwd' and 'dst' parameters against directory traversal sequences before using them to construct file paths.

Impact

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

What the attacker needed

Authenticated user with filesystem privilege

How it was found

  1. Authenticate to the Web Manager with a user having the filesystem privilege.
  2. Send a POST request to the root path with parameters ajax=FsMove, src=shadow, dst=../ltrx_user/shadow, submit=Move, and cwd=/../etc/.
  3. The request moves /etc/shadow to /ltrx_user/shadow, making it readable by any authenticated user.

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 file manager lets users move files, but it doesn't properly check the folder paths they provide. By including special sequences like '../', an attacker can trick the system into moving files from anywhere on the device, including sensitive system files. This requires being logged in with a specific permission.

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.