CVE-2024-2361CWE-29

Arbitrary Upload & Read via Path Traversal in parisneo/lollms-webui

Critical · published May 16, 2024

CVSS v3.0
9.6
EPSS
1%
Percentile
49.7
In the wild
Unconfirmed
What it is

🚨 A sneaky flaw in the parisneo/lollms-webui lets attackers upload and read any file they want! 🔥 Think of this vulnerability like a restaurant that accepts any order without checking if it’s on the menu; it creates a situation where anyone can serve themselves whatever they fancy. User inputs aren’t being properly sanitized, allowing malicious patrons to manipulate the kitchen's inventory. If exploited, attackers could access sensitive information stored on the server or even upload malicious files. This could lead to data breaches, server compromise, or the spread of malware — an absolute nightmare for any organization!

Put simply

Think of this vulnerability like a restaurant that accepts any order without checking if it’s on the menu; it creates a situation where anyone can serve themselves whatever they fancy. User inputs aren’t being properly sanitized, allowing malicious patrons to manipulate the kitchen's inventory. The vulnerability in the `install_model()` function allows arbitrary file upload and read due to insufficient sanitization of the `file://` protocol and parameters like `path` and `variant_name`. This leads to path traversal, enabling attackers to access or upload files to unauthorized locations on the server.

What to do

If exploited, attackers could access sensitive information stored on the server or even upload malicious files. This could lead to data breaches, server compromise, or the spread of malware — an absolute nightmare for any organization! To protect your system, immediately update to the latest patched version of parisneo/lollms-webui. Ensure that all user inputs are properly sanitized and implement strict validation checks on file uploads. Regularly audit your application for similar vulnerabilities. You’ve got this! By taking these steps, you’re not just fixing this issue but also stepping up as a security hero! 🛡️

The record
Technical detail
CVSS v3.0
9.6 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00634 · 49.7th percentile
Weakness
CWE-29 · Path Traversal: '\..\filename'
Published
2024-05-16T09:03Z
EPSS history
Timeline
  • 16 MAY 09:03Z
    Arbitrary Upload & Read via Path Traversal in parisneo/lollms-webui
    cvelistv5