Summary
Flyto2 Core's http.paginate can follow a server-provided next-page URL without reapplying its SSRF checks. A caller who can invoke pagination may cause a request to an internal or metadata service, and the response may be included in the results returned by the workflow.
Affected context
The issue occurs in Flyto2 Core's HTTP pagination module when it processes a Link: rel="next" header. The initial URL is validated, but a subsequent URL supplied by the responding server is followed without the same SSRF guard. Risk depends on whether a caller can invoke the workflow and whether the runtime can reach sensitive internal services.
Exploit preconditions
- Attack surface: The
http.paginatefunctionality and its outbound HTTP requests - Required access: Ability to invoke a workflow that uses pagination; the description characterizes the caller as low-privileged
- Trigger point: Processing a response containing a next-page link
- Why exploitation is possible: The follow-up URL is server-supplied and is not checked against the SSRF guard before the request is made; its response is aggregated into
all_itemsand returned
Why this happens
The pagination flow validates the initial destination but does not apply equivalent destination checks to subsequent URLs derived from response headers. This is a URL validation and trust-boundary failure mapped to CWE-918: Server-Side Request Forgery (SSRF). A server-controlled link is treated as safe to fetch even though it can direct the application to a different, potentially sensitive network destination.
Potential impact
- The application could make requests to internal or metadata services reachable from its runtime.
- Responses from those services may be exposed through the aggregated pagination results.
- Internal endpoints may be accessed in ways not intended by the workflow's caller.
- The impact may be greater in deployments with broad network access or sensitive services reachable from the application.
General mitigation guidance
Defensive patterns include validating every destination immediately before making an outbound request, including pagination links and redirects. Apply destination allowlists or equivalent URL and network-boundary policies, and reject links that resolve to prohibited hosts, address ranges, or schemes.
Treat response headers and other remote content as untrusted input. Where practical, reduce outbound network access, limit the data exposed to workflow callers, and run the application with least-privilege network permissions.
How teams detect issues like this
Review pagination and redirect code for requests made to URLs derived from response headers or remote content without destination validation. Static analysis can flag outbound request calls whose URLs are not checked at each request boundary.
Tests and policy checks can verify that links to disallowed destinations are rejected, including links that change host or resolve to restricted network ranges. Network egress monitoring may also help identify unexpected requests to internal or metadata services.

