Summary
Tandoor Recipes can make server-side requests to internal hosts when a space admin configures a Nextcloud storage with a URL targeting those hosts. If the configured storage is used to import a file and retrieve it through the recipe-file endpoint, an attacker may read responses from internal services or cloud metadata endpoints.
Affected context
The issue occurs in Tandoor Recipes' Nextcloud storage integration when a WebDAV client is built using a storage URL without applying safe-request protections. Deployments may be at risk when a space admin can create or configure storage destinations and the application can reach internal hosts from its runtime environment.
Exploit preconditions
- Attack surface: The Nextcloud storage integration and recipe-file retrieval flow
- Required access: Space-admin privileges sufficient to create a storage through the storage API
- Trigger point: The application makes a request while importing or retrieving a file associated with the configured storage
- Why exploitation is possible: The storage URL is used to build a WebDAV client without the expected safe-request checks, allowing requests to reach internal destinations
Why this happens
The application uses a user-configurable storage URL to construct a server-side WebDAV client without applying request-safety validation. This is an insecure handling of request destinations: untrusted or insufficiently constrained input can influence where the server connects. The behavior maps to CWE-918: Server-Side Request Forgery (SSRF).
Potential impact
- An attacker may read responses from internal services reachable by the application
- Cloud metadata or other sensitive internal information could be exposed
- Internal services could receive unexpected requests from the application
- The application's network position could enable access beyond the attacker's own network reach
General mitigation guidance
Defensive patterns include validating destinations before creating outbound clients and applying the same safe-request controls to every request path. Prefer secure-by-default destination allowlists over accepting arbitrary URLs, and reduce trust in administrator-supplied storage endpoints through strict parsing and validation. Network egress controls can limit access to private, loopback, link-local, and metadata address ranges, while least-privilege runtime permissions and narrowly scoped network access can reduce potential impact.
How teams detect issues like this
- Use static analysis to identify outbound HTTP or WebDAV clients constructed from configurable URLs without destination validation.
- Review storage integrations and file-import flows for consistent safe-request checks, including redirects and DNS resolution behavior.
- Apply policy checks that restrict outbound connections to approved hosts and block access to sensitive internal ranges.
- Monitor application egress and logs for unexpected requests to internal services or metadata endpoints.
- Automated code review tools may help flag user-controlled values reaching server-side request APIs.

