Skip to content

Commit df62234

Browse files
davidcarrerafenech
authored andcommitted
allow additional ranges of ips
1 parent ce356df commit df62234

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
@@ -86,10 +86,12 @@ func init() {
8686
ssrf.WithNetworks("tcp4", "tcp6"),
8787
ssrf.WithAllowedV4Prefixes(
8888
netip.MustParsePrefix("10.0.0.0/8"), // Private-Use (RFC 1918)
89+
netip.MustParsePrefix("100.64.0.0/10"), // Shared Address Space (RFC 6598)
8990
netip.MustParsePrefix("127.0.0.0/8"), // Loopback (RFC 1122, Section 3.2.1.3))
9091
netip.MustParsePrefix("169.254.0.0/16"), // Link Local (RFC 3927)
9192
netip.MustParsePrefix("172.16.0.0/12"), // Private-Use (RFC 1918)
9293
netip.MustParsePrefix("192.168.0.0/16"), // Private-Use (RFC 1918)
94+
netip.MustParsePrefix("198.18.0.0/15"), // Benchmarking (RFC 2544)
9395
),
9496
ssrf.WithAllowedV6Prefixes(
9597
netip.MustParsePrefix("::1/128"), // Loopback (RFC 4193)
@@ -106,10 +108,12 @@ func init() {
106108
ssrf.WithNetworks("tcp4"),
107109
ssrf.WithAllowedV4Prefixes(
108110
netip.MustParsePrefix("10.0.0.0/8"), // Private-Use (RFC 1918)
111+
netip.MustParsePrefix("100.64.0.0/10"), // Shared Address Space (RFC 6598)
109112
netip.MustParsePrefix("127.0.0.0/8"), // Loopback (RFC 1122, Section 3.2.1.3))
110113
netip.MustParsePrefix("169.254.0.0/16"), // Link Local (RFC 3927)
111114
netip.MustParsePrefix("172.16.0.0/12"), // Private-Use (RFC 1918)
112115
netip.MustParsePrefix("192.168.0.0/16"), // Private-Use (RFC 1918)
116+
netip.MustParsePrefix("198.18.0.0/15"), // Benchmarking (RFC 2544)
113117
),
114118
ssrf.WithAllowedV6Prefixes(
115119
netip.MustParsePrefix("::1/128"), // Loopback (RFC 4193)

0 commit comments

Comments
 (0)