Skip to content
Path traversal Disclosed report Intermediate CVE-2024-6085

lollms vulnerable to path traversal due to unauthenticated root folder settings change

The XTTS server in lollms v9.6 allows unauthenticated changes to root folder settings, which bypasses path traversal protection on the read file endpoint. An attacker can read arbitrary files and write arbitrary audio files anywhere on the system.

lollms

Originally disclosed on huntr

A path traversal vulnerability exists in the XTTS server included in the lollms package, version v9.6. This vulnerability arises from the ability to perform an unauthenticated root folder settings change. Although the read file endpoint is protected against path traversals, this protection can be bypassed by changing the root folder to '/'. This allows attackers to read arbitrary files on the system. Additionally, the output folders can be changed to write arbitrary audio files to any location on the system.

From the GitHub Advisory Database (GHSA-9chm-m6x2-6fvc, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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 root folder setting is not protected by authentication and is used to define the base directory for file operations, so changing it to '/' removes the intended restriction.

What the attacker needed

No authentication required; access to the XTTS server

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 trick a program into accessing files outside the folder it should be limited to. Here, the program's protection can be turned off by changing a setting that says where the 'root' folder is, and that setting can be changed without logging in. So an attacker can read any file on the computer and also write audio files to any place.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from lollms

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.