SSRF protection — no IP range blocking on remote dereference #4

Closed
opened 2026-05-29 10:22:27 +00:00 by GKaszewski · 0 comments
Owner

When dereferencing remote object or actor URLs, there is no validation that the resolved IP is not in a private/reserved range (127.0.0.0/8, 10.0.0.0/8, 169.254.0.0/16, fc00::/7, etc.).

A malicious actor could craft an actor URL pointing at internal services, causing the server to make requests to the local network.

Suggested fix: resolve the hostname before connecting and reject private/loopback/link-local IP ranges. Consider a configurable allowlist for legitimate internal federation scenarios.

When dereferencing remote object or actor URLs, there is no validation that the resolved IP is not in a private/reserved range (127.0.0.0/8, 10.0.0.0/8, 169.254.0.0/16, fc00::/7, etc.). A malicious actor could craft an actor URL pointing at internal services, causing the server to make requests to the local network. Suggested fix: resolve the hostname before connecting and reject private/loopback/link-local IP ranges. Consider a configurable allowlist for legitimate internal federation scenarios.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GKaszewski/k-ap#4