Skip to content
CVE-2026-77315 Microsoft Sentinel · KQL

Detect CVE-2026-77315: Flyto2 Core http.paginate SSRF via server-supplied next-page URLs in Microsoft Sentinel

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

Tactic
Initial Access Collection Credential Access

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-6deade0860 · https://df00tech.com/detections/CVE-2026-77315 · licence: https://df00tech.com/detections/licence
// Detect flyto-core http.paginate following next-page URLs to internal/metadata targets
let metadataTargets = dynamic(["169.254.169.254","169.254.170.2","metadata.google.internal","100.100.100.200","fd00:ec2::254"]);
union isfuzzy=true
  (DeviceNetworkEvents
  | where InitiatingProcessFileName in~ ("python","python3","gunicorn","uvicorn","uwsgi")
  | where InitiatingProcessCommandLine has_any ("flyto","flyto_core","flyto-core","paginate")
     or InitiatingProcessCommandLine has "flyto"
  | extend DestIp = RemoteIP, DestUrl = RemoteUrl),
  (DeviceNetworkEvents
  | extend DestIp = RemoteIP, DestUrl = RemoteUrl)
| where ipv4_is_in_range(DestIp, "169.254.0.0/16")
    or ipv4_is_in_range(DestIp, "127.0.0.0/8")
    or ipv4_is_in_range(DestIp, "10.0.0.0/8")
    or ipv4_is_in_range(DestIp, "172.16.0.0/12")
    or ipv4_is_in_range(DestIp, "192.168.0.0/16")
    or DestIp in (metadataTargets)
    or DestUrl has_any (metadataTargets)
| where InitiatingProcessFileName in~ ("python","python3","gunicorn","uvicorn","uwsgi")
| project TimeGenerated, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, RemoteIP, RemoteUrl, RemotePort, InitiatingProcessAccountName
| order by TimeGenerated desc
high severity medium confidence

Flags outbound connections from Python web-app worker processes (likely flyto-core consumers) to cloud metadata, loopback, link-local, or RFC1918 destinations, the SSRF sink reached when http.paginate follows an attacker-controlled next-page URL.

Data Sources

Microsoft Defender for EndpointDeviceNetworkEvents

Required Tables

DeviceNetworkEvents

False Positives & Tuning

  • Legitimate internal API pagination where the upstream and internal targets are genuinely trusted microservices in RFC1918 space
  • Service-discovery or health-check agents that poll link-local/loopback endpoints
  • Cloud SDKs or instance agents that legitimately query the metadata endpoint on the same 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.

  1. 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.

  2. Test 2 JSON cursor next-page URL points to loopback service

    Expected signal: python3 process initiates connection to 127.0.0.1:9000.

  3. 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

  1. Confirm the affected host runs an application depending on flyto-core <= 2.26.7 (check `pip show flyto-core` / requirements lockfiles / SBOM).
  2. 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.
  3. 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.
  4. Review application logs for http.paginate calls that followed a next-page URL pointing to a non-original host/scheme.

Containment

  1. Upgrade flyto-core to >= 2.26.8 on all affected hosts and redeploy the application.
  2. Apply egress network controls (deny-list link-local/metadata ranges, enforce IMDSv2) from application worker hosts until patched.
  3. Rotate any cloud credentials or tokens reachable from the instance metadata endpoint if metadata access is confirmed.

Evidence Collection

  1. Capture proxy/network logs showing the full URL and destination IP of the SSRF-driven requests, including the originating process.
  2. 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.

Hunting — KQL
kql
// 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
Hunting — SPL
spl
``` 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

Test 1 flyto-core paginate follows Link header to metadata endpoint
linux

Simulate http.paginate following an attacker-controlled rel=next Link header pointing at the cloud metadata IP.

Command

bash
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

bash
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).

Test 2 JSON cursor next-page URL points to loopback service
linux

Simulate a paginated JSON response whose next_cursor URL targets an internal loopback admin port.

Command

bash
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

bash
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.

Test 3 paginate follows next URL to RFC1918 internal host
linux

Simulate following a server-supplied next-page URL to an internal RFC1918 address, emulating internal recon via SSRF.

Command

bash
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

bash
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.

Related Detections