Skip to content

Fix/csrf dos protection - #102

Open
minoosama wants to merge 2 commits into
Advanced-Computer-Lab-2026:mainfrom
minoosama:fix/csrf-dos-protection
Open

minoosama wants to merge 2 commits into
Advanced-Computer-Lab-2026:mainfrom
minoosama:fix/csrf-dos-protection

Conversation

@minoosama

Copy link
Copy Markdown

No description provided.

minoosama and others added 2 commits November 12, 2026 16:04
- Server: double-submit CSRF tokens (csrf-csrf) bound to the session,
  required on all state-changing requests; new GET /api/csrf-token.
- Server: express-rate-limit on /api/maintenance (30/min) with a tighter
  limit on writes (10/min).
- Client: axios interceptor fetches and attaches x-csrf-token on mutating
  requests, refreshing on session change or a rejected token.
- Tests: jest suites for server CSRF, server DoS, and client CSRF behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant