Skip to content

Add rate limiting to activation, activation code request, and TOTP setup endpoints#6232

Open
cnkk wants to merge 8 commits intomasterfrom
rate-limit-forms
Open

Add rate limiting to activation, activation code request, and TOTP setup endpoints#6232
cnkk wants to merge 8 commits intomasterfrom
rate-limit-forms

Conversation

@cnkk
Copy link
Copy Markdown
Member

@cnkk cnkk commented Apr 6, 2026

Adds rate limiting to previously unprotected authentication endpoints:

  • POST /activate — brute-force of 4-digit codes (1000–9999)
  • POST /activate/request-code — activation email spam prevention
  • POST /2fa/setup/verify — TOTP code brute-force during enrolment

@cnkk
Copy link
Copy Markdown
Member Author

cnkk commented Apr 6, 2026

@cubic-dev-ai

@cubic-dev-ai
Copy link
Copy Markdown

cubic-dev-ai bot commented Apr 6, 2026

@cubic-dev-ai

@cnkk I have started the AI code review. It will take a few minutes to complete.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants