Summary
Suna before version 0.9.102 exposes a broken access control flaw in its message queue API, allowing authenticated users to access and manipulate queue resources owned by other accounts.
When ownership and isolation checks are missing, an attacker can read or delete other users' sessions and inject arbitrary prompts that the victim's AI agent will process under their credentials.
Affected context
This vulnerability occurs in Suna deployments that expose the message queue API to authenticated users without consistently enforcing per-user ownership and account isolation on queue and session resources.
It manifests where queue identifiers or session IDs are accepted and processed based solely on authentication, rather than being tied to the requesting user's account or a robust authorization model.
Environments with multi-tenant usage or shared infrastructure and a background drainer that forwards queued prompts to AI agents are particularly exposed to cross-account interaction.
Exploit preconditions
- Attack surface: Message queue and session management API endpoints (e.g., queue listing, item read/delete, prompt enqueue).
- Required access: Valid authenticated account in the Suna system; no elevated privileges are strictly required.
- Trigger point: Supplying queue or session identifiers for resources belonging to another user to read, delete, or inject prompts.
- Why exploitation is possible: The API authorizes actions based on authentication alone, failing to verify resource ownership or enforce tenant isolation, so cross-account requests are treated as legitimate.
Why this happens
The underlying issue is improper authorization on sensitive API operations, aligning with CWE-862: Missing Authorization.
Queue and session endpoints rely on the presence of a valid user session but do not verify that the requested resource actually belongs to the caller or resides within their tenant boundary.
This broken access control pattern often emerges when resource identifiers are assumed to be unguessable or trusted, and when business logic lacks explicit checks that correlate the requester's identity with the target resource's owner.
Potential impact
- Attackers may read pending prompt queues of other users, exposing sensitive data and instructions.
- Attackers could delete or tamper with individual sessions, disrupting AI agent workflows and causing data loss.
- Attackers can inject arbitrary prompts into another user's session queue, influencing the victim's AI agent behavior and outputs.
- Malicious prompts could cause the victim's AI agent to perform unauthorized actions using the victim's credentials and existing integrations.
- Cross-tenant data leakage and integrity violations can undermine trust in the platform's multi-tenant isolation.
General mitigation guidance
Effective mitigation focuses on enforcing strict, explicit authorization for every queue and session operation.
Common defensive patterns include:
- Implementing resource-level authorization checks that tie each queue and session to an owning user or tenant and validate that the caller matches this association.
- Designing API routes and identifiers to be scoped per account or tenant, avoiding global identifiers that can be reused across users.
- Applying a centralized authorization layer or policy engine that consistently evaluates permissions for create, read, update, and delete actions on queue resources.
- Minimizing implicit trust in client-supplied identifiers by verifying them against server-side ownership metadata before performing operations.
- Applying least-privilege principles so that authenticated accounts can only access queues and sessions they explicitly own or have been granted rights to.
How teams detect issues like this
Detection generally relies on a combination of design-time review and runtime monitoring:
- Static analysis and architectural reviews to identify API endpoints that perform state-changing or data-reading operations without explicit ownership or permission checks.
- Code review practices that flag any use of resource identifiers (IDs, tokens, queue names) where authorization is inferred from authentication alone.
- Security testing and automated integration tests that simulate cross-account access attempts, verifying that requests from one user cannot read or modify another user's queues or sessions.
- Logging and anomaly detection that track patterns of access to resources across different accounts, highlighting unexpected cross-tenant interactions.
- Use of automated policy enforcement tools or authorization libraries that require explicit declaration of access control rules for each resource type.

