rodauth is vulnerable to Race Condition (TOCTOU)
48
Medium Risk
Several authentication flows retrieved and consumed one-time tokens and codes without serializing concurrent requests for the same account. Concurrent requests could reuse a single-use credential or exceed the configured OTP and SMS failure limits, because the token lookup and deletion were not performed under a locking transaction. Exploitation requires possession of a valid token or partial account access together with a concurrent request from the legitimate user. The fix wraps these operations in transactions using row locking, verifies that a single row was deleted, and rejects concurrent password updates instead of silently succeeding.
You are affected if you are using a version that falls within the vulnerable range and you use one of the token-based or multifactor features.
rodauth is vulnerable to Race Condition (TOCTOU) in versions 1.0.0 - 2.46.0.
Upgrade the rodauth library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant