Lantronix PremierWave 2050 Web Manager Applications and FsBrowse local file inclusion vulnerability
An authenticated user could upload a Python script that creates a symbolic link to a sensitive file, then use the file browser to read that file with root privileges. This allowed disclosure of arbitrary files such as /etc/shadow.
Originally disclosed on Cisco Talos
A local file inclusion vulnerability exists in the Web Manager Applications and FsBrowse functionality of Lantronix PremierWave 2050 8.9.0.0R4. A specially-crafted series of HTTP requests 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
The web application does not drop privileges when browsing the filesystem, unlike when executing user-supplied Python scripts.
Impact
An authenticated attacker could read arbitrary files, including /etc/shadow, with root privileges.
What the attacker needed
Authenticated access to Web Manager; ability to upload and execute Python scripts
How it was found
- Log in to the Web Manager interface.
- Upload a Python script that creates a symbolic link from a sensitive file to a location in the browsable filesystem.
- Execute the uploaded script.
- Navigate to the Filesystem > Browse page to view the contents of the linked 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 users upload small programs (Python scripts) that run with limited permissions. But the file browser part of the web interface runs with full administrator rights. By making a shortcut (a symbolic link) to a protected file, a logged-in user could trick the file browser into showing that file's contents.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.