capgo.app - это платформа обновления over-the-air для приложений Capacitor. Во всех версиях до исправления политики безопасности UPDATE уровня строки в таблице public.orgs позволяет администратору организации (пользователю, владеющему org.update_settings) обновлять всю строку, включая внутреннюю колонку указателя выставления счетов customer_id. Официальная конечная точка обновления организации (supabase/functions/_backend/public/organization/put.ts) позволяет перечислить только небольшой набор редактируемых полей настроек и исключает customer_id, а частный биллинговый маршрут Stripe отдельно требует разрешения org.update_billing.
Отправляя обновление непосредственно в Supabase PostgREST, аутентифицированный администратор организации без org.update_billing может аннулировать или повредить указатель клиента организации Stripe, вызывая проверки плана и выставления счетов, которые доверяют провалу orgs.customer_id, и перемещая организацию из действительного платного состояния плана в неоплачиваемое / неплановое поведение. Во время консультации не было никакой исправленной версии.
Показать оригинальное описание (EN)
capgo.app is an over-the-air update platform for Capacitor apps. In all versions prior to a fix, the row-level security UPDATE policy on the public.orgs table permits an organization admin (a user holding org.update_settings) to update the entire row, including the internal billing pointer column customer_id. The official organization update endpoint (supabase/functions/_backend/public/organization/put.ts) allowlists only a small set of editable settings fields and excludes customer_id, and the private Stripe billing route separately requires the org.update_billing permission. By sending an update directly to Supabase PostgREST, an authenticated org admin without org.update_billing can null or corrupt the organization's Stripe customer pointer, causing plan and billing checks that trust orgs.customer_id to fail and moving the organization from a valid paid plan state to unpaid/no-plan behavior. At the time of the advisory no patched version was available.
Характеристики атаки
Последствия
Строка CVSS v4.0