path traversal vulnerability was identified in the parisneo/lollms-webui
The 'list_personalities' endpoint in lollms-webui mishandles the 'category' parameter, allowing directory traversal. An attacker can craft a request to list subfolder names of arbitrary directories on the server.
parisneo/lollms
Originally disclosed on huntr
A path traversal vulnerability was identified in the parisneo/lollms-webui repository, specifically within version 9.6. The vulnerability arises due to improper handling of user-supplied input in the 'list_personalities' endpoint. By crafting a malicious HTTP request, an attacker can traverse the directory structure and view the contents of any folder, albeit limited to subfolder names only. This issue was demonstrated via a specific HTTP request that manipulated the 'category' parameter to access arbitrary directories. The vulnerability is present in the code located at the 'endpoints/lollms_advanced.py' file.
From the GitHub Advisory Database (GHSA-9p73-x86v-jw57, CC BY 4.0).
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 endpoint passes the user-supplied 'category' parameter directly into a filesystem path without validating or restricting it to an allowed directory.
Impact
An attacker could list subfolder names of arbitrary directories on the server, which may reveal internal structure but not file contents.
What the attacker needed
Access to the web interface
How it was found
- Send an HTTP request to the 'list_personalities' endpoint.
- Manipulate the 'category' parameter to include path traversal sequences.
- Observe that the response lists subfolder names from an arbitrary directory.
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.
A web app lets you pick a category, and it uses that name to look inside a folder on the server. Because it does not check the name properly, you can use special path characters to make it look in other folders. This lets you see the names of subfolders anywhere on the machine, but not the files inside them.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.