mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
The WHATWG URL parser canonicalizes dotted IPv4-mapped IPv6 literals (e.g. ::ffff:127.0.0.1) to hex form (::ffff:7f00:1). The SSRF guard only checked the dotted form, so hex literals bypassed the private-IP classifier and allowed access to loopback, cloud metadata, and RFC1918 addresses. Decode hex IPv4-mapped suffixes to dotted IPv4 before the private-range check. Reported-by: tonghuaroot