Неправильный Session Invalidation после уязвимости Authentication Credential Change в ash_authentication позволяет злоумышленнику, удерживающему токен сеанса жертвы, оставаться в системе после того, как жертва сбросит или изменит свой пароль. С apply_on_password_change? true, AshAuthentication.AddOn.LogOutEverywhere.Transformer добавляет OnPasswordChange для обновления действий как глобального изменения, охраняемого где: changing(hashed_password). Это условие оценивается до запуска крюков before_action, но AshAuthentication.Strategy.Password.HashPasswordChange устанавливает новый хеш в крюк before_action, поэтому для каждого неатомного изменения пароля условие является ложным, и сохраненные токены пользователя не отзываются.
Сгенерированное действие сброса пароля и действие установщика change_password не являются атомарными. Эта проблема затрагивает ash_authentication: от 4.5.0 до 4.15.1 и от 5.0.0-rc.0 до 5.0.0-rc.16.
Показать оригинальное описание (EN)
Improper Session Invalidation after Authentication Credential Change vulnerability in team-alembic ash_authentication allows an attacker holding a victim's session token to stay signed in after the victim resets or changes their password. With apply_on_password_change? true, AshAuthentication.AddOn.LogOutEverywhere.Transformer adds OnPasswordChange to update actions as a global change guarded by where: changing(hashed_password). That condition is evaluated before the action's before_action hooks run, but AshAuthentication.Strategy.Password.HashPasswordChange sets the new hash in a before_action hook, so for every non-atomic password change the condition is false and the user's stored tokens are not revoked. The generated password reset action and the installer's change_password action are both non-atomic. This issue affects ash_authentication: from 4.5.0 before 4.15.1 and from 5.0.0-rc.0 before 5.0.0-rc.16.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Team-Alembic Ash_Authentication
cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*
|
4.5.0
|
4.15.1
|
|
Team-Alembic Ash_Authentication
cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*
|
5.0.0-rc.0
|
5.0.0-rc.16
|