Net: resolver callback for SSRF pinning and a stop token for HttpClient::send #55

Closed
opened 2026-12-04 01:31:20 +00:00 by faumaray · 0 comments
Owner

Context: Forge M07 webhooks must validate every resolved A/AAAA answer and connect to the validated address (no DNS rebinding TOCTOU), with no redirects.

Gaps at a29c947:

  1. HttpClient has no resolve-then-connect hook or resolver callback, so a caller cannot pin the validated address.
  2. HttpClient::send has no stop token/cancellation, so a delivery cannot be cancelled on shutdown or revocation.

Need: an optional resolver/connect-address callback (or a pre-resolved address parameter) and a stop token on send. Forge otherwise has to pre-resolve and accept a small rebinding window.

Tests/gate: resolver callback receives the host and returns the pinned address; cancellation aborts an in-flight request promptly.

Context: Forge M07 webhooks must validate every resolved A/AAAA answer and connect to the validated address (no DNS rebinding TOCTOU), with no redirects. Gaps at a29c947: 1. `HttpClient` has no resolve-then-connect hook or resolver callback, so a caller cannot pin the validated address. 2. `HttpClient::send` has no stop token/cancellation, so a delivery cannot be cancelled on shutdown or revocation. Need: an optional resolver/connect-address callback (or a pre-resolved address parameter) and a stop token on send. Forge otherwise has to pre-resolve and accept a small rebinding window. Tests/gate: resolver callback receives the host and returns the pinned address; cancellation aborts an in-flight request promptly.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Void/Library#55