User-supplied post content was stored without sanitisation and rendered in the Home Feed, so an attacker could inject JavaScript that runs in other users' browsers, including administrators'. This could lead to session hijacking, account takeover and wormable attacks.
The application used a weak secret key to sign JSON Web Tokens (JWTs), allowing an attacker to brute-force the key offline. Once the key was recovered, the attacker could forge administrative tokens and gain access to restricted endpoints.
The Socket.IO event handlers in lollms_generation_events.py were registered without any authentication or authorization checks, so unauthenticated clients could invoke operations such as text generation and cancellation. This could lead to denial of service, state corruption, and race conditions, especially because global flags were used for state management in a multi-client environment.
The authenticate_user function compared passwords using Python's default string equality, which exits early on the first mismatched character, causing response times to vary with the number of matching leading characters. An attacker could measure these timing differences to enumerate valid usernames and guess passwords incrementally.
The Calculate function in LoLLMS used Python's eval() inside a sandbox that disabled builtins and only allowed math functions. An attacker could bypass the sandbox by loading the os module through _frozen_importlib.BuiltinImporter and run arbitrary commands on the server.
The discussion image upload function in Lollms v9.9 allows SVG files, and its sanitize_svg function only removes script elements and on* event attributes, leaving other XSS vectors. An attacker could upload a crafted SVG that executes script when an authorised user accesses a malicious URL, potentially leading to remote code execution.
The open_personality_folder endpoint in LoLLMs fails to properly sanitise the personality_folder parameter, allowing directory traversal. An attacker could read any folder within the personality_folder on the victim's machine despite sanitisation attempts.
The file system functions in the LoLLMs server do not sanitise user-supplied paths, allowing an attacker to run vectorisation operations on arbitrary .sqlite files on the victim's machine. This could install multiple packages and crash the server.
The apply_settings function in LoLLMS versions before 9.5.1 fails to properly sanitise the discussion_db_name parameter, allowing path traversal. An attacker could manipulate the path to write files to important system folders.
The `/set_personality_config` endpoint in lollms version 9.4.0 is vulnerable to path traversal, allowing an attacker to overwrite the `configs/config.yaml` file. By changing server configuration properties, an attacker could achieve remote code execution.
The `/mount_extension` endpoint in lollms allowed path traversal because the `data.category` and `data.folder` parameters accepted empty strings, letting an attacker construct a `package_path` pointing to the root directory. If an attacker could place a `config.yaml` file in a controllable path, that path could be added to the extensions list and trigger execution of `__init__.py`, leading to remote code execution.
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.
The application's path sanitisation functions failed to properly block directory traversal sequences on Windows, allowing an attacker to read arbitrary files. This could lead to unauthorised access to sensitive files, information disclosure, and potentially a denial of service by loading many large files.
The application failed to properly validate file paths containing backslashes, allowing an attacker to traverse directories and read or delete arbitrary files on a Windows system. This could expose sensitive information such as environment variables, database files, and configuration files.
The 'list_personalities' endpoint in lollms-webui mishandles the 'category' parameter, allowing directory traversal. An attacker can craft a request to list subfolder names of arbitrary directories on the server.
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.
PL
parisneo/lollms
High
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.