Summary
PraisonAI Platform contains a privilege escalation flaw where low-privilege workspace members can arbitrarily assign roles, including promoting users to workspace owners.
By abusing the member management endpoint, an attacker can inject new accounts or escalate existing users across tenants, leading to full control of affected workspaces.
Affected context
This vulnerability arises in PraisonAI Platform deployments where workspace membership management is exposed via the POST /workspaces/{workspace_id}/members API.
The issue appears when the endpoint only checks that the caller is a workspace member (with a minimal "member" role) and then forwards the supplied user_id and role directly into the membership service without further authorization.
It is most relevant in multi-tenant environments where different organizations or teams share the same platform and rely on workspace roles as a primary isolation boundary.
Exploit preconditions
- Attack surface: Application API, specifically
POST /workspaces/{workspace_id}/members - Required access: Any authenticated user who is at least a "member" of the target workspace
- Trigger point: Submitting a request that specifies an arbitrary
user_idand an elevatedrole(such as "owner") for that workspace - Why exploitation is possible: The member addition flow checks only that the caller belongs to the workspace, and then blindly trusts the caller-provided
user_idandroleparameters, with no server-side check that the caller is allowed to assign or create higher-privileged roles
Why this happens
The core issue is a missing or improperly enforced authorization check on a sensitive operation: modifying workspace membership and roles.
The POST /workspaces/{workspace_id}/members endpoint relies on require_workspace_member(workspace_id) with a default min_role="member" and does not enforce that only higher-privileged roles (e.g., owners or admins) can promote or add members.
The downstream call to MemberService.add(workspace_id, user_id, role) performs no caller-permission validation, effectively trusting unprivileged users to assign arbitrary roles.
This maps to CWE-269: Improper Privilege Management, with a contributing factor of CWE-862: Missing Authorization, where security-sensitive actions are not gated by appropriate permission checks.
Potential impact
- An attacker-controlled account may be promoted to workspace owner, gaining full administrative control over that workspace
- Cross-tenant member injection could allow unauthorized users to be added to other organizations' workspaces
- Existing users can be forcefully granted ownership, enabling griefing, lockouts, or abuse under their identity
- Sensitive data, configuration, and multi-agent workflows within the workspace may be exposed, modified, or deleted
- Further lateral movement across the platform if workspace ownership confers additional platform-wide capabilities
General mitigation guidance
Effective mitigation focuses on enforcing strict, role-aware authorization for membership changes and centralizing permission logic.
Common defensive patterns include:
- Requiring high-privilege roles (such as owner or admin) to perform member addition and role assignment operations
- Implementing server-side checks that validate the caller's effective permissions against the requested role changes, independent of client input
- Defining a clear authorization matrix for workspace actions and enforcing it consistently across all service layers and helper functions
- Ensuring that domain services like
MemberService.addperform their own authorization or are only reachable through well-guarded entry points - Applying least-privilege defaults so minimal roles cannot perform administrative or cross-tenant actions, even indirectly
How teams detect issues like this
Organizations can identify similar authorization weaknesses through a combination of code-level and behavioral analysis:
- Static analysis rules that flag sensitive operations (e.g., role changes, membership modifications) lacking explicit authorization checks
- Code review practices that require mapping each privileged action to a documented authorization policy or permission gate
- Centralized authorization middleware or policy engines (e.g., RBAC/ABAC) and checks for any bypasses around them
- Logging and monitoring of role changes, especially promotions to owner/admin, with alerts for anomalous patterns such as low-privilege users initiating such changes
- Periodic security tests or red-team exercises targeting multi-tenant boundaries and workspace management endpoints

