Lord of Large Language Models (LoLLMs) Server path traversal vulnerability in lollms_file_system.py
The file system functions in the LoLLMs server do not sanitise user-supplied paths, allowing an attacker to run vectorisation operations on arbitrary .sqlite files on the victim's machine. This could install multiple packages and crash the server.
parisneo/lollms
Originally disclosed on huntr
A path traversal vulnerability exists in the ParisNeo/lollms repository, specifically in the lollms_file_system.py file. The functions add_rag_database, toggle_mount_rag_database, and vectorize_folder do not implement security measures such as sanitize_path_from_endpoint or sanitize_path. This allows an attacker to perform vectorize operations on .sqlite files in any directory on the victim's computer, potentially installing multiple packages and causing a crash.
From the GitHub Advisory Database (GHSA-7pgr-32fx-c6x9, 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
The functions add_rag_database, toggle_mount_rag_database and vectorize_folder accept file paths without applying the existing path-sanitisation helpers.
Impact
An attacker could cause vectorisation of arbitrary .sqlite files, potentially installing multiple packages and crashing the victim's computer.
What the attacker needed
Access to the LoLLMs server interface
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 a program accepts a file path from a user and does not check it, so someone can point it at files outside the intended folder. Here the server's file-handling functions let an attacker choose any .sqlite file on the computer for a processing step, which can overload the machine.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.