Summary
Onlook through version 0.2.32 contains a broken object-level authorization flaw in several tRPC API procedures, allowing authenticated users to act on resources they do not own by supplying arbitrary UUIDs.
When project or conversation identifiers are not properly checked against the caller's permissions, an attacker can read, modify, or delete other users' projects, members, and conversation history.
Affected context
This vulnerability appears in Onlook deployments that expose tRPC API procedures such as project.get, member.remove, and chat.conversation.delete to authenticated users.
The issue arises when the backend accepts client-supplied projectId or conversationId values as trustworthy and does not consistently verify that these resources belong to, or are shared with, the requesting user.
Any environment where user-to-resource relationships are enforced only by authentication rather than explicit authorization checks will be susceptible to this broken object-level access control.
Exploit preconditions
- Attack surface: Application API layer exposed via tRPC endpoints (
project.get,member.remove,chat.conversation.delete) - Required access: Valid authenticated account in the Onlook instance
- Trigger point: Supplying arbitrary
projectIdorconversationIdUUIDs in API calls targeting resources owned by other users or teams - Why exploitation is possible: The server-side logic authorizes actions based solely on user authentication and the presence of an object identifier, without verifying resource ownership or permission relationships for each requested object
Why this happens
The root cause aligns with CWE-639: Authorization Bypass Through User-Controlled Key, where the application relies on client-supplied identifiers (such as projectId and conversationId) to locate resources but does not enforce object-level authorization.
Instead of deriving or validating accessible resources based on the authenticated user's context, the API trusts any well-formed UUID, allowing direct access to objects belonging to other accounts.
This pattern breaks isolation between tenants or users, turning predictable or discoverable identifiers into a means of cross-account data access and manipulation.
Potential impact
- Attackers may read other users' project metadata, configurations, and associated content.
- Attackers may remove members from projects they do not control, disrupting collaboration and governance.
- Attackers may delete or alter conversation history for other users or teams, causing data loss and integrity issues.
- Attackers may pivot across multiple projects or workspaces, effectively enumerating and tampering with resources across the deployment.
General mitigation guidance
Effective mitigation centers on enforcing per-object authorization checks on every API that accepts a user-controlled identifier.
Typical defensive patterns include:
- Resolving accessible resource identifiers server-side from the authenticated user's session or role, rather than trusting client-supplied IDs.
- Implementing a consistent authorization layer that verifies ownership or membership before allowing operations on
projectId,conversationId, or similar keys. - Using access control rules that encode relationships (user-to-project, member-to-conversation) and fail closed when no explicit permission exists.
- Applying least-privilege principles for authenticated users, limiting the default scope of actions to resources they directly own or are explicitly granted access to.
- Centralizing authorization logic instead of duplicating checks across handlers, reducing the chance of missed validations in new tRPC procedures.
How teams detect issues like this
Detection can focus on both code-level review and runtime monitoring:
- Static analysis and code review: Look for endpoints that accept resource IDs from clients and directly query or mutate database records without subsequent ownership or permission checks.
- Authorization policy enforcement: Define and enforce patterns such as "every operation on
projectIdmust call a shared authorization helper" and flag deviations in CI. - Logging and anomaly detection: Instrument logs to capture access patterns where a single user touches many distinct project or conversation IDs, particularly those outside their usual scope.
- Automated testing: Add integration tests that simulate cross-user access attempts (e.g., user A trying to operate on user B's project) and ensure they consistently fail.

