Security and Session Hardening #9

Open
opened 2025-10-23 21:49:10 +00:00 by H3ALY · 0 comments
Owner

Harden SCS config

  1. Set Secure, HttpOnly, SameSite cookies.
  2. Renew session on login.

Tune CSRF setup

  1. Configure nosurf base cookie properly.
  2. Inject CSRF tokens in forms.

Add rate-limiting middleware

  • Optional via Gin middleware.

Acceptance Criteria

  1. Session fixation impossible.
  2. Invalid CSRF tokens rejected with 403.
  3. Rate limiters functional.
**Harden SCS config** 1. Set Secure, HttpOnly, SameSite cookies. 2. Renew session on login. **Tune CSRF setup** 1. Configure nosurf base cookie properly. 2. Inject CSRF tokens in forms. **Add rate-limiting middleware** - Optional via Gin middleware. **Acceptance Criteria** 1. Session fixation impossible. 2. Invalid CSRF tokens rejected with 403. 3. Rate limiters functional.
H3ALY added this to the 🛠 In Progress project 2025-10-23 21:49:10 +00:00
Sign in to join this conversation.