A SCIM token issued to one tenant can deactivate users in another tenant
- Asset
- api.example.com: PATCH /scim/v2/Users/{id}
- Caller
- SCIM token issued to Tenant B (synthetic test configuration)
- Standard
- OWASP API1:2023 Broken Object Level Authorization; CWE-639
Impact. An admin of any customer tenant, or anyone holding its SCIM token, can lock out or modify users in other tenants by changing the user ID. User IDs appear in shared links and audit exports.
Fix. Resolve the tenant from the SCIM token and scope every user and group lookup to it. Return 404 for users outside that tenant, add a paired-tenant regression test and review the Groups endpoint for the same pattern.
Evidence · request → response
PATCH /scim/v2/Users/usr_7731 HTTP/1.1 Host: api.example.com Authorization: Bearer [redacted: Tenant B SCIM token] Content-Type: application/scim+json {"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "Operations":[{"op":"replace","path":"active","value":false}]}
HTTP/1.1 200 OK Content-Type: application/scim+json {"id":"usr_7731","userName":"[email protected]", "active":false,"meta":{"resourceType":"User"},"tenant":"tnt_A"}