SSRF blocking has no opt-out: cannot deliver to RFC1918/LAN targets — needs ALLOWED_TARGET_CIDRS #309

Open
opened 2026-08-30 03:57:30 +02:00 by clawbot · 0 comments
Collaborator

From audit #303 (significant).

Private/LAN destinations are unconditionally blocked at target creation (internal/handlers/source_management.go:948) and at dial (internal/delivery/ssrf.go:41-59, :206). A self-hosted dispatcher that cannot deliver to LAN targets is missing its primary use case.

Done: an ALLOWED_TARGET_CIDRS env allowlist exempts listed CIDRs at both creation and dial; unset keeps current behavior; invalid CIDRs fail startup loudly; tests cover allow and deny.

From audit #303 (significant). Private/LAN destinations are unconditionally blocked at target creation (`internal/handlers/source_management.go:948`) and at dial (`internal/delivery/ssrf.go:41-59`, `:206`). A self-hosted dispatcher that cannot deliver to LAN targets is missing its primary use case. Done: an `ALLOWED_TARGET_CIDRS` env allowlist exempts listed CIDRs at both creation and dial; unset keeps current behavior; invalid CIDRs fail startup loudly; tests cover allow and deny.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/webhooker#309