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

LoLLMS Command Injection vulnerability

The unInstall_binding endpoint fails to sanitise the name parameter, allowing directory traversal. An attacker could load a malicious __init__.py file and execute arbitrary code on the server.

parisneo/lollms

Originally disclosed on huntr

A vulnerability in the parisneo/lollms, specifically in the /unInstall_binding endpoint, allows for arbitrary code execution due to insufficient sanitization of user input. The issue arises from the lack of path sanitization when handling the name parameter in the unInstall_binding function, allowing an attacker to traverse directories and execute arbitrary code by loading a malicious __init__.py file. This vulnerability affects the latest version of the software. The exploitation of this vulnerability could lead to remote code execution on the system where parisneo/lollms is deployed.

From the GitHub Advisory Database (GHSA-pwc9-q4hj-pg8g, 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 unInstall_binding function uses the user-supplied name parameter in a file path without sanitising it, enabling path traversal to a malicious Python file that is then imported.

Impact

An attacker could achieve remote code execution on the system where the software is deployed.

What the attacker needed

Access to the unInstall_binding endpoint; ability to place a malicious file on the 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.

This software has a feature that removes add-ons by name. It does not check that the name stays inside the add-ons folder, so someone can point it at a file they control elsewhere on the machine. When the software loads that file, the attacker's code runs on the server.

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.