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

parisneo/lollms Local File Inclusion (LFI) attack

The path sanitisation function in lollms 9.5 does not handle Windows-style backslash separators, so directory traversal sequences can slip through. An attacker could use routes such as personalities and /del_preset to read or delete arbitrary files on a Windows host.

parisneo/lollms

Originally disclosed on huntr

Critical View original

parisneo/lollms version 9.5 is vulnerable to Local File Inclusion (LFI) attacks due to insufficient path sanitization. The sanitize_path_from_endpoint function fails to properly sanitize Windows-style paths (backward slash \), allowing attackers to perform directory traversal attacks on Windows systems. This vulnerability can be exploited through various routes, including personalities and /del_preset, to read or delete any file on the Windows filesystem, compromising the system's availability.

From the GitHub Advisory Database (GHSA-vqwr-q6cc-c242, 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 sanitiser only normalised or rejected forward-slash traversal sequences and did not treat backslashes as path separators on Windows.

Impact

An attacker could read or delete any file on the Windows filesystem, which compromises the system's availability.

What the attacker needed

Windows host; access to affected routes

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 local file inclusion bug lets someone make a web app open a file from the server that they should not be able to reach. Here the check that was meant to block paths like 'go up a folder' only looked at one kind of slash, so on Windows a different slash could sneak past it. That let an attacker read or even delete files on 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.

More from parisneo/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.