Неправильная уязвимость авторизации в ash-проекте ash_postgres позволяет пользователю читать запись другого арендатора через пропущенный апсерт. Когда Ash.bulk_create/4 или одиночное создание выполняется как upsert с return_skipped_upsert?: true и upsert пропускается (например, потому что его upsert_condition не выполняется), AshPostgres.DataLayer считывает существующую строку по идентификатору upsert в do_bulk_create/3 и upsert/4. Этот поиск не применял атрибут multitenancy ресурса, поэтому на ресурсе, использующем стратегию :attribute, он может совпадать и возвращать строку другого арендатора с теми же значениями идентичности, открывая свои поля вызывающему абоненту.
Эта проблема затрагивает ash_postgres: от 2.6.22 до 2.15.2.
Показать оригинальное описание (EN)
Incorrect Authorization vulnerability in ash-project ash_postgres allows a user to read another tenant's record through a skipped upsert. When Ash.bulk_create/4 or a single create runs as an upsert with return_skipped_upsert?: true and the upsert is skipped (for example because its upsert_condition does not hold), AshPostgres.DataLayer reads the existing row back by the upsert identity in do_bulk_create/3 and upsert/4. That lookup did not apply the resource's attribute multitenancy, so on a resource using strategy :attribute it could match and return the row of another tenant with the same identity values, exposing its fields to the caller. This issue affects ash_postgres: from 2.6.22 before 2.15.2.
Характеристики атаки
Последствия
Строка CVSS v4.0