shipfeedAI news, curated daily

05:27:58 CET
24 JUN05:27:58shipfeed
pull to refreshlast sync
Just in — 30 new
§ tools · storyline

Fixes SSRF vulnerabilities in download URL validation and hardens

A software patch hardens download URL validation against SSRF bypasses, fixing trailing-dot hostname checks, embedded IPv4-in-IPv6 detection, redirect pre-validation, and missing reserved address ranges.

Jun 12 · · primary fetch1 sourceupdated Jun 12 ·

Patch Changes eea9166: fix: harden download URL SSRF guard against hostname and redirect bypasses `validateDownloadUrl` and the file download helpers (`downloadBlob`, `download`) could be bypassed in several ways when handling untrusted URLs: A fully-qualified hostname with a trailing dot (e.g. `localhost.`, `myhost.local.`) skipped the localhost/`.local` blocklist. IPv6 addresses that embed an IPv4 address in their last 32 bits — IPv4-compatible (`::127.0.0.1`), IPv4-translated (`::ffff:0:127.0.0.1`), and NAT64 (`64:ff9b::127.0.0.1`, including the `64:ff9b:1::/48` local-use prefix) — were not decoded and checked against the private IPv4 ranges.

Redirects were validated only _after_ `fetch` had already followed them, so the request to a redirect target (e.g. an internal/metadata address) had already been issued before the check ran. Several reserved/internal address ranges were not blocked: CGNAT (`100.64.0.0/10`, used by some cloud providers for internal traffic), benchmarking (`198.18.0.0/15`), IETF protocol assignments (`192.0.0.0/24`), the reserved `240.0.0.0/4` block (including the `255.255.255.255` broadcast address), and IPv6 site-local (`fec0::/10`) and multicast…

read full article on github.com
§ sources1 publication · timeline below
  1. github.comVercel AI SDK — ai v5.0.200primary