Lantronix PremierWave 2050 Web Manager FsCopyFile directory traversal vulnerability
The Web Manager's file copy function fails to sanitise all path parameters, allowing an authenticated user to copy arbitrary files into a readable directory or overwrite system files. An attacker with the filesystem privilege could read sensitive files like /etc/shadow or overwrite them.
Originally disclosed on Cisco Talos
A directory traversal vulnerability exists in the Web Manager FsCopyFile functionality of Lantronix PremierWave 2050 8.9.0.0R4. A specially-crafted HTTP request can lead to local file inclusion.
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 sanitises only some of the user-supplied path parameters (src and dst) but not the cwd parameter, allowing path traversal sequences to be used when constructing file paths.
Impact
An authenticated attacker with the filesystem privilege could read sensitive system files or overwrite arbitrary files, potentially leading to further compromise.
What the attacker needed
Authenticated user with filesystem privilege
How it was found
- Authenticate to the Web Manager with a user that has the filesystem privilege.
- Send a POST request to the root path with parameters ajax=FsCopyFile, src=shadow, dst=../ltrx_user/shadow, submit=Copy, and cwd=/../etc/.
- The device copies /etc/shadow to /ltrx_user/shadow, which can then be read 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 has a web page that lets users copy files within a restricted folder. The software checks some but not all of the input that tells it which files to copy, so a user can sneak in special characters to escape the folder. This lets them read or overwrite files anywhere on the device, including password files.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.