Impact
Capgo application versions up to 12.261.0 contain an incomplete access‑control fix for the public.sso_providers table. A database trigger installed by the migration allows updates to the provider_id column while other columns are protected by a before‑update guard. Because the table grants full rights to both anonymous and authenticated roles and row‑level security policies only restrict which rows may be updated, an org_admin (who has org.update_settings permission) can PATCH provider_id through PostgREST. This turns the trusted IdP binding into one chosen by the attacker, enabling them to authenticate as the organization owner, null the owner’s password, delete other identities and sessions, and permanently lock out the legitimate account. The vulnerability is a classic example of improper authorization (CWE‑639).
Affected Systems
Cap‑go:capgo.app users of any installation version up to 12.261.0 are at risk. The flaw resides in the public.sso_providers table of the Capgo database and affects all organizations configured with an SSO provider.
Risk and Exploitability
The CVSS score of 8.6 indicates a high‑severity condition. EPSS data is not available, and the vulnerability is not listed in the CISA known‑exploited catalog, but the attack requires an org_admin role and an active SSO provider – realistic prerequisites in many deployments. The exploit path is straightforward: obtain org_admin rights, issue a PATCH to provider_id, and hijack the owner account. This results in vertical privilege escalation and account takeover.
OpenCVE Enrichment