Summary
PraisonAI Platform contains an Insecure Direct Object Reference in multiple label-related endpoints that trust client-supplied label_id and issue_id values.
When a user is a member of any workspace, they can operate on labels and issues outside that workspace by referencing arbitrary identifiers in the URL, potentially leading to cross-workspace data tampering and unauthorized access.
Affected context
This vulnerability occurs in PraisonAI Platform deployments exposing the label management API for multi-workspace teams.
It affects environments where:
- Users can interact with workspaces they are members of.
- Label and issue identifiers are globally addressable or reused across workspaces.
- The backend relies solely on workspace membership checks without confirming that target labels and issues belong to the same workspace.
Exploit preconditions
- Attack surface: Public or internal HTTP API endpoints:
PATCH /workspaces/{workspace_id}/labels/{label_id}DELETE /workspaces/{workspace_id}/labels/{label_id}POST /workspaces/{workspace_id}/issues/{issue_id}/labels/{label_id}DELETE /workspaces/{workspace_id}/issues/{issue_id}/labels/{label_id}GET /workspaces/{workspace_id}/issues/{issue_id}/labels- Required access: Attacker must be an authenticated member of at least one workspace.
- Trigger point: Supplying crafted
label_idand/orissue_idvalues in the URL path parameters while calling these endpoints. - Why exploitation is possible: The platform gates access on
require_workspace_member(workspace_id)but does not validate that the referenced labels or issues are owned by the specified workspace, allowing operations on objects from other workspaces or tenants.
Why this happens
The underlying bug is an authorization design flaw where object-level access control is incomplete.
The API correctly verifies that the caller is a member of some workspace but then forwards URL-supplied label_id and issue_id directly to LabelService without enforcing a relationship between those objects and the workspace_id.
This maps to CWE-639: Insecure Direct Object Reference (IDOR), where untrusted identifiers are used to access backend objects without sufficient ownership or scope checks, enabling horizontal or cross-tenant privilege escalation.
Potential impact
- Attackers can modify labels attached to issues in other workspaces they do not belong to.
- Attackers may attach or detach labels on cross-workspace issues, altering workflows or automation triggers.
- Unauthorized viewing of label associations for issues in other workspaces, potentially leaking metadata or organizational structure.
- Cross-tenant data corruption if labels and issues are shared across different customers or teams.
- Misclassification or silent tampering with multi-agent task tracking and audit trails.
General mitigation guidance
Effective mitigation centers on enforcing object-level authorization and tightening identifier trust boundaries.
Recommended patterns include:
- Validating that every
label_idandissue_idused in workspace-scoped endpoints is explicitly owned by, or associated with, the givenworkspace_id. - Designing identifiers to be workspace-scoped or tenant-scoped, rather than globally addressable, to limit cross-context access.
- Implementing a consistent authorization layer that checks both user permissions and object relationships before performing operations.
- Avoiding direct use of client-supplied IDs in business services without prior lookup and ownership verification.
- Applying least-privilege role and permission models so membership does not automatically grant broad modification abilities.
How teams detect issues like this
Detection commonly focuses on both code-level signals and behavioral anomalies:
- Static or manual review to find endpoints that:
- Use client-supplied IDs (e.g.,
{label_id},{issue_id}) and - Rely solely on coarse checks (like workspace membership) without verifying object ownership or scope.
- Establishing patterns in code review where every object access requires a join or lookup confirming
object.workspace_id == workspace_id(or analogous constraints). - Using automated security testing or API fuzzing to attempt cross-workspace operations by mixing valid
workspace_idvalues with foreignlabel_idandissue_idvalues. - Monitoring logs for repeated 4xx responses or unusual combinations of workspace and object identifiers that may indicate probing for IDOR weaknesses.
- Applying policy-based authorization frameworks that make missing relationship checks easier to spot in code.

