Summary
Convoy contains an insecure direct object reference (IDOR) in single-resource handlers under /portal-api. A holder of a portal link token who also knows another tenant's resource ID in the same project may access or modify that tenant's resource.
Affected context
The issue affects Convoy versions before 26.6.0 when portal link tokens are used with /portal-api single-resource handlers. It becomes risky if handlers rely on a supplied resource ID without verifying that the requested resource belongs to the token holder's tenant.
Exploit preconditions
- Attack surface: Single-resource endpoints under
/portal-api - Required access: A valid portal link token and knowledge of another tenant's resource ID in the same project
- Trigger point: A request to a handler for the identified resource
- Why exploitation is possible: The handler may not enforce tenant ownership for the requested resource
Why this happens
The underlying issue is authorization based on a user-controlled resource identifier without adequately checking the caller's relationship to the referenced object. This is an IDOR pattern associated with CWE-639: Authorization Bypass Through User-Controlled Key. Possession of a valid token does not, by itself, establish permission to access every resource identified by an ID.
Potential impact
- A token holder may read endpoint signing secrets or webhook payloads belonging to another tenant.
- An attacker could rotate endpoint secrets or pause or delete endpoints.
- An attacker may force event re-delivery, potentially disrupting operations or exposing data.
General mitigation guidance
Defensive patterns focus on authorizing every object-level operation in the context of the authenticated tenant.
- Scope resource lookups to the caller's tenant and project rather than trusting an identifier alone.
- Apply consistent authorization checks to reads, updates, secret rotation, deletion, and event actions.
- Use deny-by-default behavior when ownership or access cannot be established.
- Limit portal token scope and lifetime, and grant only the minimum permissions needed.
- Treat identifiers as references, not as proof of authorization; avoid relying on unguessable IDs as the access-control boundary.
How teams detect issues like this
- Review single-resource handlers for lookups keyed only by a supplied ID and missing tenant or ownership checks.
- Use static analysis or code review rules to flag object access where authorization is not performed before returning or changing data.
- Test authorization policies with resources owned by different tenants, including read and mutation actions.
- Enforce API policies requiring object-level authorization checks for every resource operation.
- Monitor for portal tokens accessing resources across tenant boundaries and for unexpected secret rotations, endpoint changes, or event re-deliveries.

