Description
Lychee is a free, open-source photo-management tool. Prior to version 7.5.2, the SSRF protection in `PhotoUrlRule.php` can be bypassed using DNS rebinding. The IP validation check (line 86-89) only activates when the hostname is an IP address. When a domain name is used, `filter_var($host, FILTER_VALIDATE_IP)` returns `false`, skipping the entire check. Version 7.5.2 patches the issue.
Problem types
CWE-918: Server-Side Request Forgery (SSRF)
Product status
References
github.com/...Lychee/security/advisories/GHSA-5245-4p8c-jwff
github.com/...ommit/28c5261fb9deab4f9420c8cc2f73a87425939107