PT-2026-79393 · Git+1 · Infinite-Image-Browsing
CVSS v4.0
8.7
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Stable Diffusion WebUI (affected versions not specified)
Description
The
to abs path function in scripts/iib/tool.py uses os.path.normpath to normalize requested paths. This method collapses dot segments but fails to resolve symbolic links. Consequently, a symlink placed within a scanned directory can bypass the containment check performed by the is path trusted function in scripts/iib/api.py while pointing to a location outside that directory. When FileResponse serves the response, it follows the link, potentially disclosing sensitive files such as /etc/passwd. This issue affects network-exposed deployments where access control is enabled via IIB ACCESS CONTROL or when the host is started with share, ngrok, listen, or server name options.Recommendations
Update the software to a version where the
to abs path function in scripts/iib/tool.py uses os.path.realpath to resolve paths.Exploit
Fix
Link Following
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Infinite-Image-Browsing