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
- Add express-rate-limit (10 req/15 min/IP) on /api/auth/login and /api/auth/signup
- Regenerate session ID after successful login to prevent session fixation
- Strip password hash from deserializeUser and login response
- Unify auth error messages to prevent user enumeration
- Replace wildcard CORS with explicit ALLOWED_ORIGINS allowlist
- Add httpOnly, Secure, SameSite, maxAge flags to session cookie
- Strip internal error details from 500 responses
- Set NODE_ENV=production in production Dockerfile
- Document ALLOWED_ORIGINS and NODE_ENV in .env.sample
Closes#372, #373, #374, #375
0 commit comments