Skip to content

Incomplete IANA reserved block coverage (IPv4 and IPv6) #376

@lduchosal

Description

@lduchosal

Description

Only 3 private address ranges (RFC 1918) are defined. Many IANA reserved blocks are missing for both IPv4 and IPv6.

Affected File

  • src/System.Net.IPNetwork/IPNetwork2IANAblock.cs

Missing IPv4 Blocks

  • 0.0.0.0/8 — This network
  • 127.0.0.0/8 — Loopback
  • 169.254.0.0/16 — Link-local
  • 192.0.0.0/24 — IETF Protocol Assignments
  • 192.0.2.0/24 — Documentation (TEST-NET-1)
  • 198.18.0.0/15 — Benchmarking
  • 198.51.100.0/24 — Documentation (TEST-NET-2)
  • 203.0.113.0/24 — Documentation (TEST-NET-3)
  • 224.0.0.0/4 — Multicast
  • 240.0.0.0/4 — Reserved
  • 255.255.255.255/32 — Broadcast

Missing IPv6 Blocks

  • ::/128 — Unspecified
  • ::1/128 — Loopback
  • ::ffff:0:0/96 — IPv4-mapped
  • 64:ff9b::/96 — IPv4/IPv6 translation
  • 2001::/32 — TEREDO
  • 2001:db8::/32 — Documentation
  • fc00::/7 — Unique local
  • fe80::/10 — Link-local
  • ff00::/8 — Multicast

Impact

Applications relying on IsIANAReserved for security filtering (e.g., SSRF protection) will miss many reserved ranges, potentially allowing access to internal/special networks.

Severity

MEDIUM

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions