LoLLMS Path Traversal vulnerability
The application's path sanitisation functions failed to properly block directory traversal sequences on Windows, allowing an attacker to read arbitrary files. This could lead to unauthorised access to sensitive files, information disclosure, and potentially a denial of service by loading many large files.
parisneo/lollms
Originally disclosed on huntr
A path traversal vulnerability exists in the parisneo/lollms application, specifically within the sanitize_path_from_endpoint and sanitize_path functions in lollms_core\lollms\security.py. This vulnerability allows for arbitrary file reading when the application is running on Windows. The issue arises due to insufficient sanitization of user-supplied input, enabling attackers to bypass the path traversal protection mechanisms by crafting malicious input. Successful exploitation could lead to unauthorized access to sensitive files, information disclosure, and potentially a denial of service (DoS) condition by including numerous large or resource-intensive files. This vulnerability affects the latest version prior to 9.5.0.
From the GitHub Advisory Database (GHSA-3x47-w4rx-6pm7, 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 path sanitisation functions did not correctly handle Windows-specific path separators or traversal patterns, allowing bypass of the protection.
Impact
An attacker could read arbitrary files on a Windows host, leading to information disclosure and potentially a denial of service by causing the application to load many large or resource-intensive files.
What the attacker needed
Application running on Windows; attacker can supply file path input
The fix
The vulnerability was fixed in version 9.5.0 by improving the path sanitisation functions.
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.
Path traversal is when an attacker tricks a program into accessing files outside the folder it is supposed to use, often by using '..' to go up directories. Here, the program tried to clean up file paths but did not do it well enough on Windows, so an attacker could read any file on the computer. This could expose private data or crash the service by making it read huge files.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.