Summary
PraisonAI Platform contains a broken access control flaw that lets any authenticated workspace member elevate their own role to owner through misconfigured authorization checks.
When administrative workspace-management routes only require generic membership instead of admin or owner permissions, low-privilege users can perform vertical privilege escalation and fully take over a workspace.
Affected context
This vulnerability arises in PraisonAI Platform deployments that use role-based workspace permissions, where administrative actions (such as role changes and membership management) are gated behind shared authorization dependencies.
The affected context is specifically workspace-management routes that rely on require_workspace_member(...) with its default min_role="member" setting, without explicitly enforcing that only admins or owners can invoke those routes.
In environments where any authenticated user can join or be invited as a regular member, the platform may unintentionally grant them administrative capabilities over the workspace.
Exploit preconditions
- Attack surface: Workspace-management HTTP routes in the PraisonAI Platform API.
- Required access: The attacker must be an authenticated user and a member of a target workspace with at least the default
memberrole. - Trigger point: Invoking privileged routes (e.g., role updates, membership modification, workspace settings changes) that incorrectly use
require_workspace_member(...)without a strictermin_rolerequirement. - Why exploitation is possible: The shared authorization dependency treats all workspace members as sufficiently privileged, failing to differentiate between routine members and administrative roles, which allows vertical privilege escalation from member to owner.
Why this happens
The root cause maps to CWE-284: Improper Access Control and CWE-862: Missing Authorization.
PraisonAI Platform centralizes authorization in a shared dependency require_workspace_member(...) that defaults to min_role="member".
Administrative workspace routes, which should enforce admin or owner roles, are implemented using this dependency without overriding the default, so they only check that the caller belongs to the workspace and do not verify higher privileges.
Conceptually, this is a broken role-based access control pattern: sensitive operations depend on a generic membership check, rather than an explicit authorization check for elevated roles, allowing ordinary users to call endpoints that modify roles, membership, and workspace state.
Potential impact
- A regular workspace member may escalate their own role to
owner. - Attackers could add arbitrary users as
owneroradminwithin the workspace. - Workspace members can change other users' roles, including demoting or removing legitimate owners.
- An attacker may take over workspace membership completely and lock out rightful users.
- Elevated users can perform destructive operations on the workspace, such as deleting resources or reconfiguring multi-agent teams.
General mitigation guidance
Effective mitigation focuses on tightening authorization boundaries around administrative functionality and ensuring role checks reflect the sensitivity of each operation.
Common defensive patterns include:
- Defining explicit, non-default authorization requirements for all privileged routes (e.g., only
adminorownerroles for membership and role-management endpoints). - Separating "member-only" functionality from "admin/owner" functionality in routing and middleware design, so shared dependencies cannot inadvertently grant elevated access.
- Applying a central policy that all state-changing operations on roles, membership, and workspace configuration require elevated privileges and cannot rely on generic membership checks.
- Designing APIs so the least-privileged role can perform only non-destructive, non-administrative actions, and validating these rules through tests and security review.
- Using defense-in-depth controls such as audit logging and alerting on anomalous role changes to detect misuse even if authorization bugs occur.
How teams detect issues like this
Detection typically involves a combination of code-level and behavioral analysis:
- Static analysis or manual code review to identify routes that modify roles, membership, or workspace state but only enforce generic membership checks (e.g.,
min_role="member"on administrative endpoints). - Policy-based reviews that map each endpoint to required roles and flag any that handle sensitive operations without explicit admin/owner checks.
- Automated testing or security-focused unit tests that assert non-admin members cannot access role-change or workspace-management endpoints.
- Runtime monitoring and audit logs that track role changes, membership modifications, and workspace deletions, enabling investigation of suspicious actions performed by non-admin users.
- Integrating automated security review tools into CI/CD pipelines to detect common broken access control patterns and missing authorization checks before deployment.

