漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Banks: Arbitrary File Read via Path Traversal in Media Filters (image/audio/video/document)
Vulnerability Description
Banks generates meaningful LLM prompts using a simple template language. In versions prior to 2.4.4, all four media filters (image, audio, video, document) in banks accept untrusted user input as file paths via Path(value) and pass them directly to open(file_path, "rb") without any path sanitization, canonicalization, or directory restriction. An attacker who controls template variables passed to a banks Prompt can use path traversal (../) to read arbitrary files accessible to the Python process—including .env files, SSH keys, cloud credentials, source code, /etc/passwd, and /etc/shadow—with the content returned base64-encoded in the rendered prompt output, making exfiltration trivial. This is particularly dangerous for applications that use banks to process user-provided template variables before sending prompts to an LLM. This issue has been fixed in version 2.4.4.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Vulnerability Title
Massimiliano Pippi banks 路径遍历漏洞
Vulnerability Description
masci banks是masci的服务器软件。 Massimiliano Pippi banks 2.4.4之前版本存在路径遍历漏洞,该漏洞源于路径处理不当,所有四个媒体过滤器接受不受信任的用户输入作为文件路径,未经路径清理、规范化或目录限制,可能导致攻击者通过路径遍历读取任意文件。
CVSS Information
N/A
Vulnerability Type
N/A