Skip to content

Commit 8d8bc64

Browse files
davidcarrerafenech
authored andcommitted
allow additional ranges of ips
1 parent edf0fdc commit 8d8bc64

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

oryx/httpx/ssrf.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,12 @@ func init() {
7474
ssrf.WithNetworks("tcp4", "tcp6"),
7575
ssrf.WithAllowedV4Prefixes(
7676
netip.MustParsePrefix("10.0.0.0/8"), // Private-Use (RFC 1918)
77+
netip.MustParsePrefix("100.64.0.0/10"), // Shared Address Space (RFC 6598)
7778
netip.MustParsePrefix("127.0.0.0/8"), // Loopback (RFC 1122, Section 3.2.1.3))
7879
netip.MustParsePrefix("169.254.0.0/16"), // Link Local (RFC 3927)
7980
netip.MustParsePrefix("172.16.0.0/12"), // Private-Use (RFC 1918)
8081
netip.MustParsePrefix("192.168.0.0/16"), // Private-Use (RFC 1918)
82+
netip.MustParsePrefix("198.18.0.0/15"), // Benchmarking (RFC 2544)
8183
),
8284
ssrf.WithAllowedV6Prefixes(
8385
netip.MustParsePrefix("::1/128"), // Loopback (RFC 4193)
@@ -94,10 +96,12 @@ func init() {
9496
ssrf.WithNetworks("tcp4"),
9597
ssrf.WithAllowedV4Prefixes(
9698
netip.MustParsePrefix("10.0.0.0/8"), // Private-Use (RFC 1918)
99+
netip.MustParsePrefix("100.64.0.0/10"), // Shared Address Space (RFC 6598)
97100
netip.MustParsePrefix("127.0.0.0/8"), // Loopback (RFC 1122, Section 3.2.1.3))
98101
netip.MustParsePrefix("169.254.0.0/16"), // Link Local (RFC 3927)
99102
netip.MustParsePrefix("172.16.0.0/12"), // Private-Use (RFC 1918)
100103
netip.MustParsePrefix("192.168.0.0/16"), // Private-Use (RFC 1918)
104+
netip.MustParsePrefix("198.18.0.0/15"), // Benchmarking (RFC 2544)
101105
),
102106
ssrf.WithAllowedV6Prefixes(
103107
netip.MustParsePrefix("::1/128"), // Loopback (RFC 4193)

0 commit comments

Comments
 (0)