From 98be9adae17fffd14fbf972a093735fe8353f991 Mon Sep 17 00:00:00 2001 From: I582987 Date: Thu, 5 Feb 2026 15:37:34 +0200 Subject: [PATCH] feat: ssrf allow CGNAT ip range for ipv4 --- oryx/httpx/ssrf.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oryx/httpx/ssrf.go b/oryx/httpx/ssrf.go index d3c0ad163f..f522ffe7ae 100644 --- a/oryx/httpx/ssrf.go +++ b/oryx/httpx/ssrf.go @@ -74,6 +74,7 @@ func init() { ssrf.WithNetworks("tcp4", "tcp6"), ssrf.WithAllowedV4Prefixes( netip.MustParsePrefix("10.0.0.0/8"), // Private-Use (RFC 1918) + netip.MustParsePrefix("100.64.0.0/10"), // Shared Address Space (RFC 6598 - CGNAT) netip.MustParsePrefix("127.0.0.0/8"), // Loopback (RFC 1122, Section 3.2.1.3)) netip.MustParsePrefix("169.254.0.0/16"), // Link Local (RFC 3927) netip.MustParsePrefix("172.16.0.0/12"), // Private-Use (RFC 1918) @@ -94,6 +95,7 @@ func init() { ssrf.WithNetworks("tcp4"), ssrf.WithAllowedV4Prefixes( netip.MustParsePrefix("10.0.0.0/8"), // Private-Use (RFC 1918) + netip.MustParsePrefix("100.64.0.0/10"), // Shared Address Space (RFC 6598 - CGNAT) netip.MustParsePrefix("127.0.0.0/8"), // Loopback (RFC 1122, Section 3.2.1.3)) netip.MustParsePrefix("169.254.0.0/16"), // Link Local (RFC 3927) netip.MustParsePrefix("172.16.0.0/12"), // Private-Use (RFC 1918)