Summary
Shelf's multi-tenant asset tracking platform improperly validated organization ownership when handling entity IDs, allowing authenticated users to access or modify data belonging to other organizations.
If a user in one workspace learns identifiers from another workspace, they may cross tenant boundaries and bypass loader-only restrictions on certain bookings.
Affected context
This vulnerability appears in Shelf's multi-tenant deployment where organizations (workspaces) are meant to have strictly isolated data.
Several endpoints trusted client-supplied entity IDs and performed connect/read/update operations without verifying that those IDs belonged to the caller's organization.
The issue also affected booking workflows that relied on loader-only restrictions, which could be bypassed via crafted POST requests.
Exploit preconditions
- Attack surface: HTTP API endpoints that accept entity IDs as input
- Required access: Authenticated account in any organization (workspace) on the Shelf platform
- Trigger point: Sending requests that reference entity IDs belonging to a different organization
- Why exploitation is possible: The server-side logic authorizes actions based on ID existence and authentication alone, without enforcing a tenant or organization ownership check for the referenced entities.
Why this happens
The core issue lies in insufficient authorization checks on multi-tenant resources, mapping to CWE-863: Improper Authorization.
Server-side handlers accepted arbitrary entity IDs from client input and directly connected/read/updated those entities, assuming that authentication and ID validity were enough.
This pattern omits an explicit verification that the target entity is owned by, or scoped to, the authenticated user's organization, and it relies on client-controlled identifiers for access control decisions.
Potential impact
- Cross-tenant reading of assets and related records from other organizations
- Unauthorized updates to another organization's asset data, bookings, or configurations
- Bypass of loader-only restrictions on personal-workspace bookings
- Exposure of sensitive operational information across organizational boundaries
- Erosion of tenant isolation guarantees, potentially impacting compliance and trust
General mitigation guidance
Effective mitigation centers on enforcing strong server-side tenancy checks and avoiding reliance on client-supplied IDs for authorization decisions.
Common patterns include:
- Scoping all queries and updates by the authenticated user's organization identifier, not just by entity ID.
- Implementing ownership checks in a centralized authorization layer rather than ad-hoc in individual controllers.
- Treating role- or loader-only restrictions as server-enforced policies, independent of client request structure.
- Using context-aware data access methods (e.g., repository or ORM helpers) that always filter by tenant and deny cross-tenant access by default.
- Minimizing direct exposure of internal IDs when possible, or pairing them with tenant-bound tokens.
How teams detect issues like this
Organizations can detect similar issues using a combination of testing, review, and automation:
- Design and run multi-tenant security tests that attempt to access resources across organizations by swapping IDs in requests.
- Add static analysis or linting rules to flag data access patterns that do not include a tenant or organization filter.
- During code review, require that every endpoint handling entity IDs demonstrates explicit tenant scoping and role checks.
- Use logging and anomaly detection to surface requests where authenticated users access or modify resources outside their own organization context.

