漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Infinite Image Browsing Resolves Paths With normpath, Allowing Symlink Escape From Scanned Directories
Vulnerability Description
to_abs_path in scripts/iib/tool.py normalised the requested path with os.path.normpath, which collapses dot segments but does not resolve symbolic links. A symlink placed inside a scanned directory therefore satisfies the containment comparison performed by is_path_trusted in scripts/iib/api.py while pointing outside that directory, and FileResponse follows the link when serving the response, so a link created in an image directory and targeting a file such as /etc/passwd discloses that file. Whether the check applies depends on get_enable_access_control in scripts/iib/tool.py: it returns true when IIB_ACCESS_CONTROL is set to enable, false when set to disable, and otherwise true when the host Stable Diffusion WebUI was started with share, ngrok, listen or server_name, falling back to false. Confinement is therefore active in the network-exposed WebUI deployments that rely on it, while a standalone run with no such option serves every readable file regardless of this flaw. The fix resolves the path with os.path.realpath.
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
zanllp Infinite Image Browsing 后置链接漏洞
Vulnerability Description
zanllp Infinite Image Browsing是中国zanllp个人开发者的一款无限图片浏览组件。 zanllp Infinite Image Browsing 1.8.0及之前版本存在后置链接漏洞,该漏洞源于scripts/iib/tool.py中的to_abs_path函数使用os.path.normpath规范化路径但不解析符号链接,攻击者可利用符号链接绕过路径信任检查,导致任意文件泄露。
CVSS Information
N/A
Vulnerability Type
N/A