Summary
PraisonAI Platform contains an Insecure Direct Object Reference in its issue comment endpoints, allowing users to access comments across workspaces without proper scoping checks.
When a user is a member of any workspace, they can read and post comments on issues belonging to other workspaces, exposing cross-tenant data and enabling unauthorized interaction with isolated projects.
Affected context
The vulnerability appears in PraisonAI Platform's multi-workspace comment functionality, specifically around issue comments.
It manifests when authorization checks validate only that a user belongs to some workspace, but do not ensure that the referenced issue actually resides within that workspace.
This typically affects deployments where multiple teams or tenants share a single PraisonAI instance and rely on workspace boundaries for isolation.
Exploit preconditions
- Attack surface: HTTP API endpoints for issue comments:
POST /workspaces/{workspace_id}/issues/{issue_id}/commentsGET /workspaces/{workspace_id}/issues/{issue_id}/comments- Required access: Valid authenticated user membership in at least one workspace.
- Trigger point: Supplying an
issue_idthat belongs to a different workspace than theworkspace_idused in the request. - Why exploitation is possible: The system enforces membership on
workspace_idonly and then passesissue_iddirectly toCommentServicewithout verifying that the issue is scoped to the same workspace, breaking tenant isolation.
Why this happens
The underlying bug is a missing object-to-context authorization check, mapped to CWE-639: Insecure Direct Object Reference.
The API assumes that if a user belongs to a workspace, they are authorized to act on any issue_id presented, and does not validate that the issue_id is actually associated with the provided workspace_id.
This design trusts client-supplied identifiers instead of deriving or validating them server-side, allowing users to reference objects belonging to other workspaces and perform read/write operations beyond their intended scope.
Potential impact
- A user may read all comments associated with issues in other workspaces.
- A user may post new comments on issues in other workspaces, influencing or disrupting external teams.
- Cross-tenant information leakage could occur, exposing internal discussions, plans, or sensitive project notes.
- Audit trails and collaboration histories can be polluted with unauthorized input from outside the workspace.
General mitigation guidance
Effective mitigation focuses on enforcing strict, server-side authorization checks that bind every resource to its owning context.
Common patterns include:
- Validating that each
issue_idbelongs to theworkspace_idgiven in the request before performing any read or write operations. - Deriving resource identifiers from server-side lookups rather than trusting client-supplied IDs for access control decisions.
- Centralizing authorization logic so that service-layer methods (e.g., comment creation and listing) require and verify workspace ownership of the underlying issue.
- Designing APIs so that cross-tenant isolation is explicit and cannot be bypassed through crafted URLs or IDs.
How teams detect issues like this
Teams can detect similar IDOR issues by:
- Performing targeted code review for endpoints that accept object IDs and checking that each ID is validated against the current user's context (e.g., workspace, tenant, project).
- Using static analysis or security linters configured to flag direct use of client-supplied identifiers in data-access methods without accompanying authorization checks.
- Adding automated tests that attempt cross-workspace or cross-tenant access and confirm that the system rejects mismatched context/identifier combinations.
- Establishing security policies that require contextual ownership checks for every multi-tenant resource and enforcing these during pull-request review.

