A defect in the Time-based One-Time Password (TOTP) single-use enforcement allows a valid TOTP code to be accepted multiple times. This issue affects web two-factor authentication flows and the Basic Auth `X-Gitea-OTP` path, potentially allowing an attacker to bypass two-factor authentication.