GitHub advisory · PyPI
Flyto2 Core: SSRF guard bypass via DNS rebinding (validate_url_ssrf resolves-then-connects without pinning)
Description
AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N = 6.8 Medium (AC:H — needs attacker-controlled DNS with a low/zero TTL and to flip the answer between the guard's lookup and the connection's lookup; S:C — reaches internal/metadata services the guard is meant to block; C:H — e.g. cloud metadata credentials at 169.254.169.254).flyto-core (PyPI flyto-core), HEAD ae2b38e (v2.26.7). src/core/utils.py::validate_url_ssrf (resolution at getaddrinfo ~L512, is_private_ip check ~L515) and every consumer: guarded_aiohttp_request(), enforce_outbound_url()/validate_url_with_env_config() — i.e. http.get/request/batch, graphql.query/mutation, monitor.http_check, notification.{slack,discord,teams}, ai.vision_analyze, verify.visual_diff, browser.proxy_rotate, etc.validate_url_ssrf() resolves the hostname with socket.getaddrinfo() and rejects the URL if any resolved IP is private. It then returns the URL string (hostname intact). The caller (guarded_aiohttp_request: validate_url_with_env_config(url) then session.request(method, url, ...)) hands the hostname to aiohttp, which performs an independent second DNS resolution at connect time. The validated IP is never pinned for the connection, so an attacker whose authoritative DNS returns a public A record for the guard's lookup and a private/loopback/metadata address for the connection's lookup reaches internal space. aiohttp resolves via…
Manual fix · PyPI
pip install --upgrade "flyto-core>=2.26.8"Sources