漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
ZLMediaKit downloadFile Root-Directory Confinement Bypass via Prefix Collision
Vulnerability Description
ZLMediaKit confines the downloadFile API to a configured set of root directories with a prefix comparison that does not account for directory boundaries. The configuration loader in server/WebApi.cpp builds each root with File::absolutePath("", item, true); because the relative-path argument is empty that helper returns the value without a trailing separator. The handler then accepts a requested path when start_with(file_path, root) holds, so a sibling directory whose name merely begins with the configured root string satisfies the test and is served. The only other guard rejects a path containing two dots, which this requires none of. The equivalent confinement check for the ordinary static file server in src/Http/HttpFileManager.cpp computes its root with a non-empty second argument, which appends the separator before comparing, and so is not affected. The endpoint requires the configured API secret, so this grants no privilege beyond what that secret already implies, but it reads files outside the directory the operator confined it to, and the reference container runs the server as root.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Vulnerability Title
ZLMediaKit 路径遍历漏洞
Vulnerability Description
ZLMediaKit是中国ZLMediaKit团队开源的一个基于 C++ 11 的高级运营级流媒体服务框架。 ZLMediaKit fa347d7dbe48dfdce525d3a0fdb92e576970ef9f版本存在路径遍历漏洞,该漏洞源于downloadFile API对配置的根目录限制使用前缀比较时未考虑目录边界,可能导致路径遍历,读取受限目录之外的文件。
CVSS Information
N/A
Vulnerability Type
N/A