Detect CVE-2026-77315: Flyto2 Core http.paginate SSRF via server-supplied next-page URLs in Elastic Security
Detects server-side request forgery (SSRF) exploitation of CVE-2026-77315 in the Flyto2 Core (flyto-core, pip) HTTP client. The http.paginate helper follows server-supplied next-page URLs (from the HTTP Link header rel=next or JSON cursor fields) without re-running SSRF revalidation on the followed URL. An attacker who controls, or can poison, a paginated upstream response can cause the application server to issue requests to attacker-chosen internal targets (cloud metadata endpoints such as 169.254.169.254, link-local, loopback, RFC1918 ranges, or internal service names), enabling credential theft and internal reconnaissance. Affects flyto-core <= 2.26.7; fixed in v2.26.8. CWE-918.
MITRE ATT&CK
Elastic Detection Query
// df00tech DF00-6deade0860 · https://df00tech.com/detections/CVE-2026-77315 · licence: https://df00tech.com/detections/licence
sequence by host.name with maxspan=30s
[ process where process.name in ("python","python3","gunicorn","uvicorn") and process.command_line like~ "*flyto*" ]
[ network where event.type == "start" and
( cidrMatch(destination.ip, "169.254.0.0/16", "127.0.0.0/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16")
or destination.address in ("metadata.google.internal","169.254.169.254","100.100.100.200") )
and process.name in ("python","python3","gunicorn","uvicorn") ] Sequences a flyto-core Python worker process with a subsequent outbound connection to internal/metadata address space, the hallmark of http.paginate SSRF.
Data Sources
Required Tables
False Positives & Tuning
- Trusted internal API pagination to RFC1918 services
- Health checks against loopback/link-local
- Cloud metadata SDK access from the application host
Other platforms for CVE-2026-77315
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 flyto-core paginate follows Link header to metadata endpoint
Expected signal: Outbound connection from python3 to 169.254.169.254 shortly after a local HTTP fetch.
- Test 2 JSON cursor next-page URL points to loopback service
Expected signal: python3 process initiates connection to 127.0.0.1:9000.
- Test 3 paginate follows next URL to RFC1918 internal host
Expected signal: Outbound connection attempt from python3 to 10.0.0.1.
Response Playbook
Triage
- Confirm the affected host runs an application depending on flyto-core <= 2.26.7 (check `pip show flyto-core` / requirements lockfiles / SBOM).
- Inspect the destination of the flagged connection: determine whether it targets a cloud metadata endpoint (169.254.169.254, metadata.google.internal, 100.100.100.200) or an internal service, which indicates successful SSRF.
- Correlate the outbound request with the upstream paginated API response, look for an attacker-controllable Link header (rel=next) or JSON cursor whose host differs from the originally requested host.
- Review application logs for http.paginate calls that followed a next-page URL pointing to a non-original host/scheme.
Containment
- Upgrade flyto-core to >= 2.26.8 on all affected hosts and redeploy the application.
- Apply egress network controls (deny-list link-local/metadata ranges, enforce IMDSv2) from application worker hosts until patched.
- Rotate any cloud credentials or tokens reachable from the instance metadata endpoint if metadata access is confirmed.
Evidence Collection
- Capture proxy/network logs showing the full URL and destination IP of the SSRF-driven requests, including the originating process.
- Preserve application logs containing the upstream paginated responses (Link headers / cursor values) that triggered the follow-on request.
Escalation Criteria
- !Escalate to IR immediately if the detection shows successful retrieval from a cloud metadata endpoint (potential credential theft).
- !Escalate if the SSRF requests reach internal admin/service endpoints or return non-error responses indicating internal access.
Investigation Guide
Forensic Artifacts
- >
Application logs recording http.paginate following a next-page URL whose host differs from the original request - >
Proxy/firewall logs of outbound requests from the app host to link-local/metadata/RFC1918 destinations - >
Installed flyto-core package version in the Python environment
Tuning Guidance
Baseline legitimate internal pagination destinations and trusted microservice CIDRs, then exclude them. Narrow the process filter to the specific service accounts/binaries that run flyto-core applications. Where IMDSv2 is enforced and metadata is legitimately accessed by instance agents, scope out those agents by process name. Prioritize alerts where the followed next-page host differs from the originally requested upstream host.
Hunting Queries
Surfaces Python application worker connections to link-local/metadata address space for retrospective SSRF hunting against flyto-core consumers.
// df00tech DF00-6deade0860 · https://df00tech.com/detections/CVE-2026-77315 · licence: https://df00tech.com/detections/licence
DeviceNetworkEvents | where InitiatingProcessFileName in~ ("python","python3","gunicorn","uvicorn") | where RemoteIP startswith "169.254." or RemoteIP == "169.254.169.254" | summarize count() by DeviceName, RemoteIP, RemoteUrl, InitiatingProcessCommandLine ``` df00tech DF00-6deade0860 · https://df00tech.com/detections/CVE-2026-77315 · licence: https://df00tech.com/detections/licence ```
index=network OR index=proxy | eval meta=if(cidrmatch("169.254.0.0/16",dest_ip),1,0) | where meta=1 | stats count by host dest_ip url process Atomic Red Team Tests
Simulate http.paginate following an attacker-controlled rel=next Link header pointing at the cloud metadata IP.
Command
python3 -c "import http.server,threading,urllib.request,socketserver;\nclass H(http.server.BaseHTTPRequestHandler):\n def do_GET(self):\n self.send_response(200);self.send_header('Link','<http://169.254.169.254/latest/meta-data/>; rel=\"next\"');self.end_headers();self.wfile.write(b'{}')\nimport functools;\nsrv=socketserver.TCPServer(('127.0.0.1',8899),H);threading.Thread(target=srv.serve_forever,daemon=True).start();\nimport urllib.request as u;r=u.urlopen('http://127.0.0.1:8899/page1');link=r.headers.get('Link');nxt=link.split('<')[1].split('>')[0];\nprint('following',nxt);\ntry:\n u.urlopen(nxt,timeout=2)\nexcept Exception as e:print('request attempted:',e)" Cleanup
pkill -f 8899 2>/dev/null; true Expected Telemetry
Outbound connection from python3 to 169.254.169.254 shortly after a local HTTP fetch.
Expected Detection
KQL/EQL rule flags python process connecting to 169.254.169.254 (link-local/metadata).
Simulate a paginated JSON response whose next_cursor URL targets an internal loopback admin port.
Command
python3 -c "import urllib.request as u;\nnext_url='http://127.0.0.1:9000/admin';\nprint('paginate following cursor to',next_url);\ntry:\n u.urlopen(next_url,timeout=2)\nexcept Exception as e:print('request attempted:',e)" Cleanup
true Expected Telemetry
python3 process initiates connection to 127.0.0.1:9000.
Expected Detection
Rule flags loopback-targeted request from a flyto-core Python worker.
Simulate following a server-supplied next-page URL to an internal RFC1918 address, emulating internal recon via SSRF.
Command
python3 -c "import urllib.request as u;\ntarget='http://10.0.0.1/internal';\nprint('following next page to',target);\ntry:\n u.urlopen(target,timeout=2)\nexcept Exception as e:print('request attempted:',e)" Cleanup
true Expected Telemetry
Outbound connection attempt from python3 to 10.0.0.1.
Expected Detection
Rule flags RFC1918-targeted request originating from a Python flyto-core worker.