You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Security: add expiry check to atomic consume, use raw SQL for cleanup
TryConsumeAtomicAsync now includes ExpiresAt > now in the WHERE clause
to close the TOCTOU race window between application-level expiry check
and SQL execution.
DeleteExpiredAsync now uses raw SQL instead of loading all rows into
memory (DoS prevention). Also deletes consumed codes to prevent
unbounded table growth.
Uses EF Core SQLite DateTimeOffset format for correct string comparison.
Addresses findings #2 (CRITICAL), #4 (HIGH), #6 (HIGH), #13 (LOW).
0 commit comments