Lord of Large Language Models (LoLLMs) path traversal vulnerability in the api open_personality_folder endpoint
The open_personality_folder endpoint in LoLLMs fails to properly sanitise the personality_folder parameter, allowing directory traversal. An attacker could read any folder within the personality_folder on the victim's machine despite sanitisation attempts.
parisneo/lollms
Originally disclosed on huntr
A path traversal vulnerability exists in the api open_personality_folder endpoint of parisneo/lollms. This vulnerability allows an attacker to read any folder in the personality_folder on the victim's computer, even though sanitize_path is set. The issue arises due to improper sanitization of the personality_folder parameter, which can be exploited to traverse directories and access arbitrary files.
From the GitHub Advisory Database (GHSA-6h64-g7cj-hj56, 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 sanitize_path function does not adequately normalise or block traversal sequences in the personality_folder parameter, allowing directory traversal.
Impact
An attacker could read any folder within the personality_folder on the victim's computer, potentially exposing sensitive files.
What the attacker needed
Access to the open_personality_folder endpoint
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 path traversal bug lets someone use special characters like '..' in a file path to escape the intended folder and peek at other folders. Here, the LoLLMs API endpoint that opens a personality folder did not clean up the folder name properly, so an attacker could trick it into showing folders outside the allowed area. This could expose files on the victim's computer.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.