github Monkfish1337/Serioussportsync v0.22.2
0.22.2: login hardening — rate-limit, dummy bcrypt, auto-Secure cookie, SESSION_SECRET hard-fail

latest releases: v1.4.1, v1.4.0, v1.3.2...
5 months ago
  • Per-IP login rate-limit (default 5 fails / 15 min → 15 min lockout, env-tunable
    via LOGIN_MAX_FAILS / LOGIN_WINDOW_MS / LOGIN_LOCKOUT_MS). Uses CF-Connecting-IP
    behind Cloudflare Tunnel, falls back to X-Forwarded-For then socket address.
  • Dummy bcrypt for unknown usernames so /login response time doesn't reveal
    whether a username exists (closes the timing oracle).
  • Session cookie now adds the Secure flag automatically when the request is
    HTTPS (X-Forwarded-Proto / req.secure). Plain-HTTP dev still works.
  • server.js refuses to boot if SESSION_SECRET is unset or shorter than 32 chars.

Don't miss a new Serioussportsync release

NewReleases is sending notifications on new releases.