Description
Capgo before 12.128.2 contains a broken access control vulnerability in the organization management API where a scoped API key (limited_to_orgs) inherits its owner-user's permissions, allowing destructive cross-organization actions. When a user is an admin in two organizations and creates a write-mode API key restricted to one organization, that key can still perform destructive operations (e.g., DELETE /organization, DELETE /organization/members) against another organization. The root cause is route-level authorization (rbac_check_permission_direct) that evaluates the key owner's user privileges before enforcing the API key's limited_to_orgs scope.
Problem types
Product status
Any version before 12.128.2
12.128.2 (semver)
Credits
zerlyer
References
github.com/.../capgo/security/advisories/GHSA-ccm4-hf72-p28m
github.com/.../capgo/security/advisories/GHSA-ccm4-hf72-p28m (GitHub Security Advisory (GHSA-ccm4-hf72-p28m))
www.vulncheck.com/...ia-scoped-api-key-privilege-inheritance (VulnCheck Advisory: Capgo - Cross-Organization Authorization Bypass via Scoped API Key Privilege Inheritance)