{"id":"CVE-2026-100618","published":"2026-09-26T14:16:42.600","lastModified":"2026-09-30T18:18:00.187","description":"Capgo (capgo.app) is affected by an authorization flaw in the app icon update path. The PUT /app/:id endpoint accepts a user-controlled `icon` value, normalizes it, and stores it in public.apps.icon_url without verifying that the image path belongs to the target app's own image namespace (e.g. org/{owner_org}/{app_id}/...). Updating apps.icon_url fires the on_app_update trigger, whose worker reads record.icon_url and calls cleanStoredImageMetadata(), which runs with service-role credentials (supabaseAdmin()) and downloads and re-uploads the referenced storage object with upsert: true. As a result, an authenticated holder of an app-limited write API key can cause the privileged worker to rewrite an out-of-scope private image object (for example an organization logo) that the key cannot read or write directly under Supabase Storage RLS. All versions are affected; no patched version was available at the time of the advisory.","cvssScore":8.5,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N","cwes":["CWE-639"],"vendors":[],"products":[],"references":[{"url":"https://github.com/Cap-go/capgo.app/security/advisories/GHSA-669c-gwrr-hc53","tags":[]},{"url":"https://www.vulncheck.com/advisories/capgo-app-icon-update-privilege-escalation-via-service-role-worker","tags":[]},{"url":"https://github.com/Cap-go/capgo.app/security/advisories/GHSA-669c-gwrr-hc53","tags":[]}],"exploitRefs":[{"url":"https://github.com/Cap-go/capgo.app/security/advisories/GHSA-669c-gwrr-hc53","tags":[]},{"url":"https://github.com/Cap-go/capgo.app/security/advisories/GHSA-669c-gwrr-hc53","tags":[]}],"hasPoc":true,"ai":{"summary":"The flaw allows an authenticated user with an app-limited write API key to rewrite an out-of-scope private image object, potentially impacting organization logos or other sensitive images.","exploitability":"Exploitation requires an authenticated user with an app-limited write API key and knowledge of the Supabase Storage RLS configuration. The attacker must also have access to the target app's image namespace.","blast_radius":"If exploited, the attacker could rewrite sensitive images, leading to potential data leakage or misrepresentation of the organization's identity.","remediation":"Disable the affected PUT /app/:id endpoint or restrict access to it using proper authentication and authorization mechanisms.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["auth-bypass","web","image-rewrite"],"model":"qwen2.5:7b-instruct","analyzedAt":"2026-10-05T08:44:07.189Z"}}