Summary
Agenta has a server-side request forgery vulnerability in workflow invocations: a workspace member with workflow edit rights can set an arbitrary revision URL and redirect requests. Depending on the destination and how the request is handled, this may expose an attached Authorization token, provider secrets in the vault API, or services at internal and cloud metadata addresses.
Affected context
The issue concerns Agenta workflow invocations that use a revision URL controlled through workflow editing. It is risky when a user with workflow edit rights can set a destination outside the intended trusted services, and requests carry an Authorization token or can reach internal network destinations.
Exploit preconditions
- Attack surface: Workflow invocation requests that follow a configured revision URL
- Required access: Workspace membership with workflow edit rights
- Trigger point: An invocation uses a workflow revision configured with an arbitrary URL
- Why exploitation is possible: The destination can be redirected, potentially causing requests or attached credentials to reach an unintended service
Why this happens
The application permits a workflow-editable URL to influence a server-side request without sufficiently restricting its destination or protecting credentials across trust boundaries. This is a server-side request forgery flaw mapped to CWE-918: an attacker can induce a server to make requests to locations the attacker selects, potentially including internal services or metadata endpoints.
Potential impact
- An attacker may capture an attached Authorization token.
- Provider secrets could be read from the vault API if the request reaches it with sufficient authority.
- Internal services or cloud metadata endpoints could be accessed from the application environment.
- Exposed credentials or internal data could enable further compromise.
General mitigation guidance
Defensive patterns include:
- Restricting workflow revision URLs to explicitly approved schemes, hosts, and paths.
- Using secure-by-default destination policies rather than accepting arbitrary URLs.
- Avoiding forwarding Authorization tokens to destinations outside their intended trust boundary.
- Applying network egress controls that block access to internal and metadata addresses unless explicitly required.
- Limiting the permissions of service credentials and vault access according to least privilege.
- Treating workspace-editable configuration as untrusted and validating it before making server-side requests.
How teams detect issues like this
- Use static analysis and code review to identify server-side HTTP requests whose destinations derive from user-editable URLs.
- Review whether URL validation handles redirects, alternate IP representations, and internal address ranges.
- Monitor workflow configuration changes and invocation logs for unexpected destinations, especially internal or metadata addresses.
- Enforce policies that restrict outbound requests to approved destinations and alert on denied or unusual egress.
- Automated code review tools may help identify URL-fetching paths that forward credentials.

