Авторизация уязвимости Bypass Through User-Controlled Key в ash_authentication позволяет пользователю с учетной записью установить секрет TOTP, который он контролирует в учетной записи другого пользователя, а затем войти в систему в качестве этого пользователя или удерживать свой второй фактор. AshAuthentication.Strategy.Totp.ConfirmSetupChange подтвердил токен установки, но не проверил, что он был выдан для подтверждения записи, поэтому собственный ожидающий секрет злоумышленника может быть подтвержден в записи другого пользователя. Изменения в настройках TOTP, ConfirmSetupChange, GeneratePendingSetupChange и GenerateSecretChange, также отметили свои изменения как взаимодействия AshAuthentication, которые стандартный обход политики AshAuthenticationInteraction пропускает. Поэтому установка политики, ограничивающая и confirm_setup для собственной записи актера, никогда не запускалась, когда приложение обнажало эти действия по ключу записи, и прямой вызов установки в записи другого пользователя возвращал ожидающий токен секрета и настройки этого пользователя.
Эта проблема затрагивает ash_authentication: от 5.0.0-rc.0 до 5.0.0-rc.16.
Показать оригинальное описание (EN)
Authorization Bypass Through User-Controlled Key vulnerability in team-alembic ash_authentication allows a user with an account to install a TOTP secret they control on another user's account, and then sign in as that user or hold their second factor. AshAuthentication.Strategy.Totp.ConfirmSetupChange verified a setup token but did not check that it was issued to the record being confirmed, so an attacker's own pending secret could be confirmed onto another user's record. The TOTP setup changes, ConfirmSetupChange, GeneratePendingSetupChange and GenerateSecretChange, also marked their changesets as AshAuthentication interactions, which the standard AshAuthenticationInteraction policy bypass lets through. A policy limiting setup and confirm_setup to the actor's own record therefore never ran when an application exposed those actions by record key, and a direct setup call on another user's record returned that user's pending secret and setup token. This issue affects ash_authentication: from 5.0.0-rc.0 before 5.0.0-rc.16.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Team-Alembic Ash_Authentication
cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*
|
5.0.0-rc.0
|
5.0.0-rc.16
|