lollms vulnerable to dot-dot-slash path traversal in XTTS server
The XTTS server in lollms v9.6 does not properly validate file paths supplied to its text-to-speech endpoint, allowing an attacker to write audio files to arbitrary locations and enumerate file paths on the system.
lollms
Originally disclosed on huntr
A path traversal vulnerability exists in the XTTS server of the parisneo/lollms package version v9.6. This vulnerability allows an attacker to write audio files to arbitrary locations on the system and enumerate file paths. The issue arises from improper validation of user-provided file paths in the tts_to_file endpoint.
From the GitHub Advisory Database (GHSA-w9qf-83jg-2x6c, 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 tts_to_file endpoint passed a user-supplied output path directly to file-writing functions without validating or restricting it to an intended directory.
Impact
An attacker could write audio files to arbitrary locations and enumerate file paths, which may lead to overwriting files or gathering information about the system.
What the attacker needed
Access to the XTTS server 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 '..' in a file path to escape the folder the program intended to use. Here, the text-to-speech server accepted a file path from the user without checking it, so an attacker could make the server save audio files anywhere on the machine and also learn which files exist.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.