Impact
The vulnerability allows a logged‑in user to install a TOTP secret they control on another user's account. The confirmation of a TOTP setup token is performed without verifying that the token belongs to the record being confirmed, enabling the attacker to confirm their own secret for someone else and then authenticate as that user or presentation the required second factor. This bypass constitutes an Authorization Bypass Through User‑Controlled Key flaw (CWE‑639).
Affected Systems
The issue affects the AshAuthentication library from team‑alembic. Versions from 5.0.0‑rc.0 through 5.0.0‑rc.15 are vulnerable; subsequent releases, starting with 5.0.0‑rc.16, contain the fix.
Risk and Exploitability
The CVSS score of 7.6 indicates high severity, and the absence of an EPSS score means exploitation probability is presently unknown. The flaw is not listed in CISA KEV, but it can be exploited by any authenticated user through exposed API endpoints that allow TOTP setup or confirmation on arbitrary user records. The attack does not require additional privileges and could lead to full account takeover, compromising confidentiality and integrity. If the application exposes the setup or confirm_setup actions via record keys, the vulnerability will be readily exploitable. Mitigation by applying the patch is strongly recommended given the potential impact.
OpenCVE Enrichment