High Severity

lollms-webui

Path Traversal Vulnerability in Personality Duplication Feature

A Local File Inclusion (LFI) vulnerability was discovered in the 'Copy to custom personas folder for editing' feature of the LoLLMs web UI, affecting the latest version. This vulnerability allows attackers to read arbitrary files from the server by exploiting unsanitized input fields. The issue was identified in the endpoint responsible for duplicating personalities to a custom folder, where path traversal payloads could be injected.

Available publicly on Jun 02 2024

7.5

CVSS:

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Credit:

retr0reg
Threat Overview

The vulnerability stems from the lack of input validation and sanitization in the 'copy_to_custom_personas' endpoint. Specifically, the 'category' and 'name' parameters, which are intended to specify the location of the personality to be duplicated, can be manipulated to include '../' sequences. This allows an attacker to traverse the server's directory structure and access files outside of the intended directory. The impact is significant as it could lead to the disclosure of sensitive information stored on the server.

Attack Scenario

An attacker intercepts the request made when a user attempts to duplicate a personality for editing. By modifying the 'category' and 'name' parameters in the request to include path traversal sequences ('../../'), the attacker can specify a path that leads to sensitive files outside of the intended directory. The server then processes this request without validation, resulting in the copying of the specified file into an accessible directory, from which the attacker can subsequently download it.

Who is affected

Any user or system utilizing the LoLLMs web UI for managing and editing LLM personalities is at risk. Specifically, systems where the web UI is accessible to attackers, either directly or through network exposure, are vulnerable. The risk is heightened in environments where sensitive files are stored on the same server as the LoLLMs application.

Technical Report
Want more out of Sightline?

Sightline offers even more for premium customers

Go Premium

We have - related security advisories that are available with Sightline Premium.