Авторизация уязвимости Bypass Through User-Controlled Key в ash-project ash позволяет пользователю одного арендатора читать, перезаписывать и захватывать записи другого арендатора с помощью повышающего действия. Под атрибутом multitenancy, Ash.Actions.Create (lib/ash/actions/create/create.ex) и Ash.Actions.Create.Bulk (lib/ash/actions/create/bulk.ex), увеличенным на первичном ключе, или на идентификаторе all_tenants?, без определения конфликтующей записи для клиента запроса. Вызывающее действие create с upsert? true, которое принимает первичный ключ, предоставляя идентификатор записи от другого арендатора, обновляет поля upsert этой записи и получает все свои атрибуты в результате.
С полями по умолчанию атрибут арендатора также был записан, переместив запись в арендатора абонента. Политики чтения и обновления не работают для апсертов, а политики создания с охватом арендатора проходят, потому что арендатор является собственным абонентом. Эта проблема затрагивает пепел: от 1.22.0 до 3.37.2.
Показать оригинальное описание (EN)
Authorization Bypass Through User-Controlled Key vulnerability in ash-project ash allows a user of one tenant to read, overwrite and take over another tenant's records via an upserting create action. Under attribute multitenancy, Ash.Actions.Create (lib/ash/actions/create/create.ex) and Ash.Actions.Create.Bulk (lib/ash/actions/create/bulk.ex) upserted on the primary key, or on an all_tenants? identity, without scoping the conflicting record to the request's tenant. A caller of a create action with upsert? true that accepts the primary key, supplying a record id from another tenant, updated that record's upsert fields and received all of its attributes in the result. With the default upsert fields the tenant attribute was written too, moving the record into the caller's tenant. Read and update policies do not run for upserts, and tenant-scoped create policies pass because the tenant is the caller's own. This issue affects ash: from 1.22.0 before 3.37.2.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Ash-Project Ash
cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*
|
1.22.0
|
3.37.2
|