File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -240,14 +240,14 @@ usage endpoint failed or returned no usable usage data.
240240 | `plugin-sdk/webhook-request-guards` | Request body size/timeout helpers and `runDetachedWebhookWork` for tracked post-ack processing |
241241
242242Provider and web-fetch helpers that accept a configured ` baseUrl ` use exact
243- HTTP origin trust for SSRF exemptions. The runtime normalizes the configured
243+ HTTP origin trust for SSRF exemptions. The runtime serializes the configured
244244origin with the platform ` URL.origin ` rules: path and query are ignored, default
245- ports are elided, userinfo is stripped, host case is folded, and trailing host
246- dots are normalized before comparison . A matching origin may promote only the
247- current request hostname for that request; redirects and sibling origins are
248- re-evaluated independently, and metadata/link-local/private network blocking
249- still runs in the resolver. Do not use origin trust as a wildcard for every host
250- that shares a domain or provider plugin.
245+ ports are elided, userinfo is stripped, and host case is folded. OpenClaw's SSRF
246+ hostname comparison separately normalizes trailing host dots . A matching origin
247+ may promote only the current request hostname for that request; redirects and
248+ sibling origins are re-evaluated independently, and metadata/link-local/private
249+ network blocking still runs in the resolver. Do not use origin trust as a
250+ wildcard for every host that shares a domain or provider plugin.
251251
252252 </Accordion >
253253
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ describe("ssrfPolicyFromHttpBaseUrlAllowedOrigin", () => {
181181 const policy = ssrfPolicyFromHttpBaseUrlAllowedOrigin ( "http://example.com.:11434/v1" ) ;
182182
183183 expect ( resolveSsrFPolicyForUrl ( new URL ( "http://example.com:11434/v1/chat" ) , policy ) ) . toEqual ( {
184- allowedOrigins : [ "http://example.com. :11434" ] ,
184+ allowedOrigins : [ "http://example.com:11434" ] ,
185185 allowedHostnames : [ "example.com" ] ,
186186 } ) ;
187187 } ) ;
You can’t perform that action at this time.
0 commit comments