Convex Auth: Sign-in rate limiting bypass allows verification code brute force
Description
Impact
Apps using an Email or Phone OTP provider could allow an unauthenticated caller unlimited attempts at guessing a verification code.
Exposure depends on the length of the code the provider generates. Short numeric codes (fewer than 8 digits) are reachable by brute force within their lifetime; longer ones are much less so.
Patches
Upgrading to v0.0.95 closes the attack vector with no further changes required.
Workarounds
If unable to patch, ensuring generateVerificationToken returns a minimum 8 digit code greatly reduces risk.