Summary
PraisonAI Platform versions prior to 0.1.4 contain an insecure direct object reference in the issue CRUD API for workspaces.
Any authenticated user who is a member of one workspace can directly access, modify, or delete issues belonging to other workspaces by targeting their IDs, exposing cross-tenant data and integrity risks.
Affected context
This vulnerability appears in the PraisonAI Platform's workspace issue management APIs, specifically the CRUD endpoints at:
GET /workspaces/{workspace_id}/issues/{issue_id}PATCH /workspaces/{workspace_id}/issues/{issue_id}DELETE /workspaces/{workspace_id}/issues/{issue_id}
It manifests when the application checks only that a user belongs to the referenced workspace, but then loads the issue by its primary key without confirming that the issue itself belongs to that workspace. In deployments where multiple tenants or teams share the same backend, this creates a cross-workspace access gap.
Exploit preconditions
- Attack surface: Authenticated HTTP API endpoints for issue management.
- Required access: Membership in any valid workspace and the ability to send requests to the issue CRUD endpoints.
- Trigger point: Supplying an
issue_idthat belongs to a different workspace than theworkspace_idin the request path. - Why exploitation is possible: Authorization is enforced only at the workspace level (
require_workspace_member(workspace_id)), while the issue is fetched by primary key viaIssueService.get(issue_id)with no constraint tying it back to the specified workspace. This mismatch allows a user to reference resources outside their authorized workspace.
Why this happens
The root cause is an authorization logic flaw where resource-level access control is not aligned with the data model. The API trusts that the issue_id provided in a URL under /workspaces/{workspace_id} inherently belongs to that workspace and therefore only verifies workspace membership.
However, the implementation uses a generic primary-key lookup (IssueService.get(issue_id)) that does not filter by workspace. This pattern matches CWE-639: Insecure Direct Object Reference, where a direct identifier from user input is used to access a backend object without re-validating ownership or context, breaking tenant isolation and enabling horizontal privilege escalation.
Potential impact
- Unauthorized reading of issues from other workspaces, exposing cross-tenant or cross-team information.
- Unauthorized modification of issues in other workspaces, including changing descriptions, status, or metadata.
- Unauthorized deletion of issues belonging to other workspaces, causing data loss and workflow disruption.
- Potential leakage of internal identifiers, relationships, or metadata that can aid further lateral movement.
General mitigation guidance
Effective mitigation focuses on enforcing authorization at the resource level and binding objects to their owning context:
- Ensure that issue lookups always include the associated workspace (for example, querying by both
workspace_idandissue_id). - Centralize authorization checks so that every access to an issue verifies ownership, tenant, or workspace membership, not just the outer path parameter.
- Treat all user-supplied identifiers as untrusted, and re-derive the resource scope from server-side data rather than request paths alone.
- Adopt a defense-in-depth approach by modeling resource ownership explicitly in the domain layer and enforcing it in service methods, not only at the controller or routing layer.
How teams detect issues like this
Detection often involves a combination of code-level and behavioral analysis:
- Static and code review: Look for controller or route handlers where:
- Authorization checks are made only on a parent identifier (e.g.,
workspace_id), while the child resource is fetched solely by primary key. - Service methods like
get(id)are used in multi-tenant contexts without additional scoping criteria. - Automated scanning: Use application security testing tools configured to probe IDOR patterns by mutating path and ID parameters across tenants.
- Logging and monitoring: Instrument APIs to log mismatches between requested workspace and the actual workspace of the loaded issue and alert on cross-tenant access patterns.
- Policy enforcement: Introduce linting or architectural rules requiring all data access methods in multi-tenant modules to accept and enforce a tenant or workspace scope parameter.

