Колеса 4.0.0 через 4.1.2 перед 4.2.0 заменяет входящие условия области с условием первичного ключа в findByKey() и существует(key). Для exist(key) производство с отключенной информацией об ошибке возвращает true для ключа out-of-scope вместо броска. Таким образом, приложения, зависящие от объема прав собственности или авторизации арендатора, могут загружать и впоследствии изменять или удалять запись другого пользователя или арендатора, когда ключ поступает из запроса.
Исправление 4.2.0 сочетает в себе ключевые условия с входящей областью, конструктором запросов или где условия в findByKey(), существуют (key), updateByKey() и deleteByKey(). Другие области поиска, агрегаты, updateAll() и deleteAll() не затрагиваются.
Показать оригинальное описание (EN)
Wheels 4.0.0 through 4.1.2 before 4.2.0 replaces incoming scope conditions with a primary-key condition in findByKey() and exists(key=). For exists(key=), production with error information disabled returns true for an out-of-scope key instead of throwing. Applications relying on scopes for ownership or tenant authorization can therefore load and subsequently modify or delete another user's or tenant's record when the key comes from a request. The 4.2.0 fix combines key conditions with incoming scope, query-builder or where conditions in findByKey(), exists(key=), updateByKey() and deleteByKey(). Other scope-aware finders, aggregates, updateAll() and deleteAll() are not affected.
Характеристики атаки
Последствия
Строка CVSS v3.1